From 1f405298584284640bfe255354641483e5836d85 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Wed, 17 Sep 2014 00:16:43 +1000 Subject: [eclass] Use non-deprecated switch with identical behaviour as per review from pesa. --- eclass/kde5-functions.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass/kde5-functions.eclass') diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index 204c67faee5..1d31cb42c16 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 -- cgit v1.2.3