commit:     647cf5985d0448dba2e3a395169a908095e0d1c5
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Wed Dec  9 17:11:26 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Dec  9 17:11:26 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=647cf598

cmake-utils.eclass: Case insensitive comment_add_subdirectory

 eclass/cmake-utils.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index d5d06c5..f2c7e26 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -259,7 +259,7 @@ comment_add_subdirectory() {
         fi
 
         if [[ -e "CMakeLists.txt" ]]; then
-                sed -e 
"/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/s/^/#DONOTCOMPILE
 /" \
+                sed -e 
"/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/I 
s/^/#DONOTCOMPILE /" \
                         -i CMakeLists.txt || die "failed to comment 
add_subdirectory(${1})"
         fi
 }

Reply via email to