diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-15 17:32:48 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-15 17:32:48 +0000 |
commit | e2f541c98dfa4081fa3ab3d28f08ea2309281884 (patch) | |
tree | cb721a55bc88753ddeb9754dc98ef45e2850ce30 /doc/CMakeLists.txt | |
download | tdesvn-e2f541c98dfa4081fa3ab3d28f08ea2309281884.tar.gz tdesvn-e2f541c98dfa4081fa3ab3d28f08ea2309281884.zip |
Added KDE3 version of kdesvn
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdesvn@1103685 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'doc/CMakeLists.txt')
-rw-r--r-- | doc/CMakeLists.txt | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 0000000..f018059 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,54 @@ +#first straigth forward until we have a doc translation + +MACRO (GENBOOK _language_code) + FILE(GLOB docimages RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code} ${_language_code}/hi128-filesys-*.png) + ADD_CUSTOM_COMMAND( + OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 + COMMAND + ${KDE3_MEINPROC_EXECUTABLE} + ARGS "--check" "--cache" "${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2" + ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook + DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook + ) + INSTALL(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 + DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/kdesvn + RENAME + index.cache.bz2 + ) + INSTALL(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/index.docbook + DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/kdesvn + ) + + FOREACH(_img ${docimages}) + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}/${_img} + ${CMAKE_CURRENT_BINARY_DIR}/${_language_code}/${_img} + COPYONLY + ) + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_language_code}/${_img} + DESTINATION ${HTML_INSTALL_DIR}/${_language_code}/kdesvn + ) + ENDFOREACH(_img) + + ADD_CUSTOM_TARGET(${_language_code}_doc + DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_language_code}_index.cache.bz2 + ) + ADD_DEPENDENCIES(doc ${_language_code}_doc) + +ENDMACRO (GENBOOK) + +IF (KDE3_MEINPROC_EXECUTABLE) + ADD_CUSTOM_TARGET(doc ALL) + GENBOOK(en) + GENBOOK(nl) + # creates the link to the common-section during install + INSTALL(SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/makelink.cmake) + +#${CMAKE_CURRENT_BINARY_DIR}/common) + +ENDIF (KDE3_MEINPROC_EXECUTABLE) + +ADD_SUBDIRECTORY(man) + |