[vlmc-devel] commit: CMakeLists.txt: Rectify path for installing man page. (Rohit Yadav )

git at videolan.org git at videolan.org
Mon Oct 4 02:51:42 CEST 2010


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Mon Oct  4 06:35:37 2010 +0530| [c2bce4ca9f90a9d117e04c54659a7c7035396695] | committer: Rohit Yadav 

CMakeLists.txt: Rectify path for installing man page.
Add code block that installs man page of vlmc from /doc to
section 1, in the man pages.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=c2bce4ca9f90a9d117e04c54659a7c7035396695
---

 CMakeLists.txt |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f484ef5..5bb3f67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -190,8 +190,8 @@ SET (VLMC_PIXMAPS_DIR ${CMAKE_INSTALL_PREFIX}/${VLMC_DATA_SUBDIR}/pixmaps/)
 
 # manual page - makes sense only on unix systems
 IF (UNIX)
-    SET (DEFAULT_MANUAL_SUBDIR  man)
-    SET (VLMC_MANUAL_SUBDIR  ${DEFAULT_MANUAL_SUBDIR}  CACHE STRING "Subdirectory where manual files will be installed")
+    SET (DEFAULT_MANUAL_SUBDIR  ${VLMC_DATA_SUBDIR}/man)
+    SET (VLMC_MANUAL_SUBDIR  "${DEFAULT_MANUAL_SUBDIR}"  CACHE STRING "Subdirectory where manual files will be installed")
     MARK_AS_ADVANCED (VLMC_MANUAL_SUBDIR)
     SET (VLMC_MANUAL_DIR  ${CMAKE_INSTALL_PREFIX}/${VLMC_MANUAL_SUBDIR})
 ENDIF (UNIX)
@@ -211,6 +211,12 @@ INSTALL (FILES share/vlmc.desktop DESTINATION ${VLMC_DESKTOP_DIR})
 # Copy the VLMC pixmap
 INSTALL (FILES share/vlmc.png DESTINATION ${VLMC_PIXMAPS_DIR})
 
+# On UNIX copy the man page
+IF (UNIX)
+    INSTALL (FILES ${CMAKE_SOURCE_DIR}/doc/vlmc.1
+             DESTINATION ${VLMC_MANUAL_DIR}/man1)
+ENDIF (UNIX)
+
 # Copy the share directory (TODO: add checks if the dir is empty, don't install)
 # INSTALL (DIRECTORY share/ DESTINATION ${VLMC_DATA_DIR}
 #         PATTERN "*.desktop" EXCLUDE



More information about the Vlmc-devel mailing list