CPack make RPM work on AIX. fix #0012183 merge patch from Pasi Valminen

This commit is contained in:
Eric NOULARD 2011-05-21 12:34:37 +02:00
parent 41c83c1bdc
commit db45b10ff7
1 changed files with 3 additions and 3 deletions

View File

@ -489,9 +489,9 @@ ENDIF(CPACK_RPM_PACKAGE_COMPONENT)
# file name by enclosing it between double quotes (thus the sed) # file name by enclosing it between double quotes (thus the sed)
# Then we must authorize any man pages extension (adding * at the end) # Then we must authorize any man pages extension (adding * at the end)
# because rpmbuild may automatically compress those files # because rpmbuild may automatically compress those files
EXECUTE_PROCESS(COMMAND find -type f -o -type l EXECUTE_PROCESS(COMMAND find . -type f -o -type l
COMMAND sed {s:.*/man.*/.*:&*:} COMMAND sed s:.*/man.*/.*:&*:
COMMAND sed {s/\\.\\\(.*\\\)/\"\\1\"/} COMMAND sed s/\\.\\\(.*\\\)/\"\\1\"/
WORKING_DIRECTORY "${WDIR}" WORKING_DIRECTORY "${WDIR}"
OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES) OUTPUT_VARIABLE CPACK_RPM_INSTALL_FILES)