Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# install a list of files with names like XXXX.manY into install_prefi/manY/XXXX.Y | ||
|
||
macro(INSTALL_MAN_PAGES install_prefix ) | ||
set(argn "${ARGN}") | ||
|
||
foreach(i IN LISTS argn) | ||
get_filename_component(fname ${i} NAME_WE) | ||
get_filename_component(fext ${i} EXT) | ||
STRING(REGEX REPLACE ".man" "" SECTION ${fext}) | ||
|
||
#TODO: add gzip compression | ||
INSTALL(FILES ${i} DESTINATION ${install_prefix}/man${SECTION}/ RENAME ${fname}.${SECTION}) | ||
|
||
endforeach() | ||
|
||
endmacro(INSTALL_MAN_PAGES ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters