diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2014-09-17 03:28:29 +1000 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2014-09-17 03:28:29 +1000 |
| commit | 0ae511f4625526917ab84bc7140d8bb9c1dca64e (patch) | |
| tree | 9561d24b4b4de32763891c67b388842da776115c | |
| parent | ad9e38972b953c4cca362b77eb9ba291f288f6e8 (diff) | |
| download | kde-0ae511f4625526917ab84bc7140d8bb9c1dca64e.tar.gz kde-0ae511f4625526917ab84bc7140d8bb9c1dca64e.tar.bz2 kde-0ae511f4625526917ab84bc7140d8bb9c1dca64e.zip | |
[eclass] Support paths with slashes in comment_add_subdirectory as per review from pesa.
| -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 1d31cb42c16..360a9ffcf9f 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -65,7 +65,7 @@ comment_add_subdirectory() { fi if [[ -e "CMakeLists.txt" ]]; then - sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ + sed -e "/add_subdirectory[[:space:]]*([[:space:]]*${1//\//\\/}[[:space:]]*)/s/^/#DONOTCOMPILE /" \ -i CMakeLists.txt || die "failed to comment add_subdirectory(${1})" fi } |
