summaryrefslogtreecommitdiffstats
path: root/doc/makelink.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'doc/makelink.cmake')
-rw-r--r--doc/makelink.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/makelink.cmake b/doc/makelink.cmake
new file mode 100644
index 0000000..3c64ed4
--- /dev/null
+++ b/doc/makelink.cmake
@@ -0,0 +1,18 @@
+IF($ENV{DESTDIR} MATCHES ".+")
+ SET(DESTDIR $ENV{DESTDIR})
+ELSE($ENV{DESTDIR} MATCHES ".+")
+ SET(DESTDIR "")
+ENDIF($ENV{DESTDIR} MATCHES ".+")
+
+SET(COMMONLINK "${DESTDIR}${CMAKE_INSTALL_PREFIX}/share/doc/HTML/en/kdesvn/common")
+
+MESSAGE(STATUS "Generating ${COMMONLINK}")
+
+EXECUTE_PROCESS(
+ COMMAND "rm" "-f" "common"
+ COMMAND ln "-s" "../common" "common"
+ WORKING_DIRECTORY "${DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/doc/HTML/en/kdesvn"
+ )
+
+SET(CMAKE_INSTALL_MANIFEST_FILES ${CMAKE_INSTALL_MANIFEST_FILES} "${CMAKE_INSTALL_PREFIX}/share/doc/HTML/en/kdesvn/common")
+