diff options
| -rw-r--r-- | eclass/kde4-functions.eclass | 2 | ||||
| -rw-r--r-- | 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 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 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 |
