Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-06-13 19:19:58 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-06-13 19:19:58 +0400
commitcb7915fc606846601ef43fc8804735006bbc0b31 (patch)
tree57313b95285e1344b6296de51cc427fd2c540ea6 /source
parent2ca497d84db81fee2521dc5f3c6d2165f47c05d6 (diff)
Automatically generate blender.1 man page during build process
Patch T40418 by Lawrence D'Oliveiro
Diffstat (limited to 'source')
-rw-r--r--source/creator/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 4943256161f..3838ecf3299 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -387,13 +387,22 @@ endif()
if(UNIX AND NOT APPLE)
+ install(
+ CODE
+ "
+ execute_process(COMMAND
+ ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1.py
+ ${TARGETDIR}/blender
+ ${TARGETDIR}/blender.1)
+ "
+ )
+
# there are a few differences between portable and system install
if(WITH_INSTALL_PORTABLE)
install(
FILES
${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop
${CMAKE_SOURCE_DIR}/release/freedesktop/icons/scalable/apps/blender.svg
- ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1
DESTINATION ${TARGETDIR}
)
@@ -456,7 +465,7 @@ if(UNIX AND NOT APPLE)
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
install(
- FILES ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1
+ FILES ${TARGETDIR}/blender.1
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1
)
install(