summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-03-18 17:16:51 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-03-18 17:16:51 +1100
commit96280cc01f95b3376506157731e7b4a1a958ee37 (patch)
treec78a9e08dafec50dd9a35c340ad8b6c564de3195 /eclass
parent9c0c4a346dfbe1d155e31d7ad0533c4e798decc9 (diff)
downloadkde-96280cc01f95b3376506157731e7b4a1a958ee37.tar.gz
kde-96280cc01f95b3376506157731e7b4a1a958ee37.tar.bz2
kde-96280cc01f95b3376506157731e7b4a1a958ee37.zip
cmake-utils.eclass: replace spaces with tabs
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cmake-utils.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 12b8dff178e..5f7bb8162d1 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -264,14 +264,14 @@ _cmake_generator_to_use() {
# @DESCRIPTION:
# Comment out an add_subdirectory call in CMakeLists.txt in the current directory
cmake_comment_add_subdirectory() {
- if [[ -z ${1} ]]; then
- die "comment_add_subdirectory must be passed the directory name to comment"
- fi
-
- if [[ -e "CMakeLists.txt" ]]; then
- sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I s/^/#DONOTCOMPILE /" \
- -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
- fi
+ if [[ -z ${1} ]]; then
+ die "comment_add_subdirectory must be passed the directory name to comment"
+ fi
+
+ if [[ -e "CMakeLists.txt" ]]; then
+ sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I s/^/#DONOTCOMPILE /" \
+ -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})"
+ fi
}
# @FUNCTION: comment_add_subdirectory