summaryrefslogtreecommitdiffstats
path: root/CMakeScripts
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-01-07 20:57:09 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2017-01-07 20:57:09 +0000
commit4f2e9055f7faaf3ca4fdac6822a131d652d5a1af (patch)
tree72c5abebcc61fbce8d92d445885acfbc57c49fb6 /CMakeScripts
parentinstall non-executable scripts without executable bit (diff)
parentInstall the localized manpages in the correct directory (diff)
downloadinkscape-4f2e9055f7faaf3ca4fdac6822a131d652d5a1af.tar.gz
inkscape-4f2e9055f7faaf3ca4fdac6822a131d652d5a1af.zip
fix man page installation folder, as per http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES
(bzr r15400)
Diffstat (limited to 'CMakeScripts')
-rw-r--r--CMakeScripts/Pod2man.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeScripts/Pod2man.cmake b/CMakeScripts/Pod2man.cmake
index 3189192de..21010fb33 100644
--- a/CMakeScripts/Pod2man.cmake
+++ b/CMakeScripts/Pod2man.cmake
@@ -28,10 +28,12 @@ macro(pod2man PODFILE_FULL RELEASE SECTION CENTER)
set(MANPAGE_TARGET "man-${NAME}-${LANG}")
set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${LANG}.tmp")
set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${LANG}.${SECTION}")
+ set(MANFILE_DEST "${CMAKE_INSTALL_PREFIX}/${SHARE_INSTALL}/man/${LANG}/man${SECTION}")
else()
set(MANPAGE_TARGET "man-${NAME}")
set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.tmp")
set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/man/${NAME}.${SECTION}")
+ set(MANFILE_DEST "${CMAKE_INSTALL_PREFIX}/${SHARE_INSTALL}/man/man${SECTION}")
endif()
add_custom_command(
OUTPUT ${MANFILE_TEMP}
@@ -48,7 +50,8 @@ macro(pod2man PODFILE_FULL RELEASE SECTION CENTER)
)
install(
FILES ${MANFILE_FULL}
- DESTINATION ${CMAKE_INSTALL_PREFIX}/${SHARE_INSTALL}/man/man${SECTION}
+ RENAME ${NAME}.${SECTION}
+ DESTINATION ${MANFILE_DEST}
)
endif()
endmacro(pod2man PODFILE NAME SECTION CENTER)