diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-09-17 00:16:43 +1000 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-09-17 00:18:12 +1000 |
| commit | 1f405298584284640bfe255354641483e5836d85 (patch) | |
| tree | 8b8cc4bcfbaff1399bcf854b4510298389011369 /eclass/kde5-functions.eclass | |
| parent | f261718701955b653cb8815ed7f53dc34d6b3d97 (diff) | |
| download | kde-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/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
