commit: 0ae511f4625526917ab84bc7140d8bb9c1dca64e
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 16 17:28:29 2014 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Sep 16 17:28:29 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=0ae511f4
[eclass] Support paths with slashes in comment_add_subdirectory as per review
from pesa.
---
eclass/kde5-functions.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index 1d31cb4..360a9ff 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -65,7 +65,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:]]*)/s/^/#DONOTCOMPILE
/" \
-i CMakeLists.txt || die "failed to comment
add_subdirectory(${1})"
fi
}