summaryrefslogtreecommitdiff
path: root/doc/pl/CMakeLists.txt
diff options
context:
space:
mode:
authorKrzysztof Koroscik <soltys@szluug.org>2013-12-23 23:38:15 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-12-23 23:38:15 +0100
commitf8cd82b1d10adba0de773102df0dee2834ed08c6 (patch)
tree12939f63a167c602d98f3124a53befefe8529ed9 /doc/pl/CMakeLists.txt
parentf1a346c21a794e512324eb7fdd640b4c7f9c7a2e (diff)
downloadweechat-f8cd82b1d10adba0de773102df0dee2834ed08c6.zip
doc: add polish man page and user's guide, update polish translations and FAQ
Diffstat (limited to 'doc/pl/CMakeLists.txt')
-rw-r--r--doc/pl/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/pl/CMakeLists.txt b/doc/pl/CMakeLists.txt
index e3cc922d3..25f01f641 100644
--- a/doc/pl/CMakeLists.txt
+++ b/doc/pl/CMakeLists.txt
@@ -17,8 +17,37 @@
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
+IF (ENABLE_MAN)
+ # man page
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.txt ${CMAKE_CURRENT_BINARY_DIR}/
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.txt ${CMAKE_CURRENT_BINARY_DIR}/
+ COMMAND ${A2X_EXECUTABLE} ARGS -a lang=pl -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.pl.txt
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.txt
+ COMMENT "Building weechat.1 (pl)"
+ )
+ ADD_CUSTOM_TARGET(doc-man-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/pl/man1)
+ENDIF (ENABLE_MAN)
+
IF(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND)
+ # user's guide
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html
+ COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=4 -a toc-title='Spis treści' -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.txt
+ DEPENDS
+ ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.txt
+ COMMENT "Building weechat_user.pl.html"
+ )
+ ADD_CUSTOM_TARGET(doc-user-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html DESTINATION ${SHAREDIR}/doc/${PROJECT_NAME})
+
# scripting guide
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html