commit: 1f405298584284640bfe255354641483e5836d85
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 16 14:16:43 2014 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Sep 16 14:18:12 2014 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=1f405298
[eclass] Use non-deprecated switch with identical behaviour as per review from
pesa.
---
eclass/kde4-functions.eclass | 2 +-
eclass/kde5-functions.eclass | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index 22cc0cd..7fb9b81 100644
--- a/eclass/kde4-functions.eclass
+++ b/eclass/kde4-functions.eclass
@@ -130,7 +130,7 @@ comment_add_subdirectory() {
die "comment_add_subdirectory must be passed the directory name
to comment"
fi
- if [[ -a "CMakeLists.txt" ]]; then
+ if [[ -e "CMakeLists.txt" ]]; then
sed -e
"/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE
/" \
-i CMakeLists.txt || die "failed to comment
add_subdirectory(${1})"
fi
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index 204c67f..1d31cb4 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -64,7 +64,7 @@ comment_add_subdirectory() {
die "comment_add_subdirectory must be passed the directory name
to comment"
fi
- if [[ -a "CMakeLists.txt" ]]; then
+ if [[ -e "CMakeLists.txt" ]]; then
sed -e
"/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE
/" \
-i CMakeLists.txt || die "failed to comment
add_subdirectory(${1})"
fi