summaryrefslogtreecommitdiffstats
path: root/Modules/CPackRPM.cmake
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2011-05-21 10:34:37 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2011-05-21 10:34:37 (GMT)
commitdb45b10ff7b977569ee0f9a01b790aa67da3f639 (patch)
tree608329ac41d90e271989fe57d7c62f26255cc19a /Modules/CPackRPM.cmake
parent41c83c1bdc1bb09a10258b2403d098eb0440cca1 (diff)
downloadCMake-db45b10ff7b977569ee0f9a01b790aa67da3f639.zip
CMake-db45b10ff7b977569ee0f9a01b790aa67da3f639.tar.gz
CMake-db45b10ff7b977569ee0f9a01b790aa67da3f639.tar.bz2
CPack make RPM work on AIX. fix #0012183 merge patch from Pasi Valminen
Diffstat (limited to 'Modules/CPackRPM.cmake')
-rw-r--r--Modules/CPackRPM.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index d9d074c..b711bc2 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -489,9 +489,9 @@ ENDIF(CPACK_RPM_PACKAGE_COMPONENT)
# file name by enclosing it between double quotes (thus the sed)
# Then we must authorize any man pages extension (adding * at the end)
# because rpmbuild may automatically compress those files
-EXECUTE_PROCESS(COMMAND find -type f -o -type l
- COMMAND sed {s:.*/man.*/.*:&*:}
- COMMAND sed {s/\\.\\\(.*\\\)/\"\\1\"/}
+EXECUTE_PROCESS(COMMAND find . -type f -o -type l
+ COMMAND sed s:.*/man.*/.*:&*:
+ COMMAND sed s/\\.\\\(.*\\\)/\"\\1\"/
WORKING_DIRECTORY "${WDIR}"
OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)