summaryrefslogtreecommitdiff
path: root/eclass/kde4-functions.eclass
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2014-09-17 00:16:43 +1000
committerMichael Palimaka <kensington@gentoo.org>2014-09-17 00:18:12 +1000
commit1f405298584284640bfe255354641483e5836d85 (patch)
tree8b8cc4bcfbaff1399bcf854b4510298389011369 /eclass/kde4-functions.eclass
parentf261718701955b653cb8815ed7f53dc34d6b3d97 (diff)
downloadkde-1f405298584284640bfe255354641483e5836d85.tar.gz
kde-1f405298584284640bfe255354641483e5836d85.tar.bz2
kde-1f405298584284640bfe255354641483e5836d85.zip
[eclass] Use non-deprecated switch with identical behaviour as per review from pesa.
Diffstat (limited to 'eclass/kde4-functions.eclass')
-rw-r--r--eclass/kde4-functions.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass
index 22cc0cd3c83..7fb9b81899b 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