diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2016-03-18 17:16:51 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2016-03-18 17:16:51 +1100 |
| commit | 96280cc01f95b3376506157731e7b4a1a958ee37 (patch) | |
| tree | c78a9e08dafec50dd9a35c340ad8b6c564de3195 /eclass | |
| parent | 9c0c4a346dfbe1d155e31d7ad0533c4e798decc9 (diff) | |
| download | kde-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.eclass | 16 |
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 |
