diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-07-28 15:10:59 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-07-29 11:36:46 +0200 |
commit | 0fe1e76bf078a1ce4fc8e32328038c9ada060f66 (patch) | |
tree | 44b3c87e397cf34b063153e5dfcd1e671235509a | |
parent | 2d89981f97e8b0e18b5b714800a9a7892dbe8fae (diff) | |
download | tdeio-gopher-0fe1e76bf078a1ce4fc8e32328038c9ada060f66.tar.gz tdeio-gopher-0fe1e76bf078a1ce4fc8e32328038c9ada060f66.zip |
Use common rules for build and install documentation and translations.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
47 files changed, 26 insertions, 287 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 328e9bf..a581546 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ cmake_minimum_required( VERSION 2.8.12 ) ##### general package setup ##################### -project( tdeio-gopher ) +project( tdeio_gopher ) ##### include essential cmake modules ########### @@ -55,9 +55,7 @@ include( ConfigureChecks.cmake ) ###### global compiler settings ################# -add_definitions( - -DHAVE_CONFIG_H -) +add_definitions( -DHAVE_CONFIG_H ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) @@ -67,8 +65,12 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ##### source directories ######################## add_subdirectory( src ) -tde_conditional_add_subdirectory( BUILD_DOC doc ) -tde_conditional_add_subdirectory( BUILD_TRANSLATIONS translations ) + + +##### other data ################################ + +tde_conditional_add_project_docs( BUILD_DOC ) +tde_conditional_add_project_translations( BUILD_TRANSLATIONS ) ##### write configure files ##################### diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt deleted file mode 100644 index 70d6348..0000000 --- a/doc/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _dir ${_dirs} ) - if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} AND - EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt ) - if( "${_dir}" STREQUAL "en" OR - "${_dir}" STREQUAL "man" OR - "${_linguas}" MATCHES "^;*$" OR - ";${_linguas};" MATCHES ";${_dir};" ) - add_subdirectory( ${_dir} ) - endif( ) - endif() -endforeach() diff --git a/doc/ca/CMakeLists.txt b/doc/ca/CMakeLists.txt deleted file mode 100644 index 336edb1..0000000 --- a/doc/ca/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG ca DESTINATION tdeio-gopher ) diff --git a/doc/ca/index.docbook b/doc/ca/tdeioslave/gopher/index.docbook index 39e96df..39e96df 100644 --- a/doc/ca/index.docbook +++ b/doc/ca/tdeioslave/gopher/index.docbook diff --git a/doc/da/CMakeLists.txt b/doc/da/CMakeLists.txt deleted file mode 100644 index dcd1716..0000000 --- a/doc/da/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG da DESTINATION tdeio-gopher ) diff --git a/doc/da/index.docbook b/doc/da/tdeioslave/gopher/index.docbook index 02a66b4..02a66b4 100644 --- a/doc/da/index.docbook +++ b/doc/da/tdeioslave/gopher/index.docbook diff --git a/doc/de/CMakeLists.txt b/doc/de/CMakeLists.txt deleted file mode 100644 index ef9bcc2..0000000 --- a/doc/de/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG de DESTINATION tdeio-gopher ) diff --git a/doc/de/index.docbook b/doc/de/tdeioslave/gopher/index.docbook index 9a231b6..9a231b6 100644 --- a/doc/de/index.docbook +++ b/doc/de/tdeioslave/gopher/index.docbook diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt deleted file mode 100644 index 16ecf1a..0000000 --- a/doc/en/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( DESTINATION tdeioslave/gopher) diff --git a/doc/en/index.docbook b/doc/en/tdeioslave/gopher/index.docbook index 2e8853c..2e8853c 100644 --- a/doc/en/index.docbook +++ b/doc/en/tdeioslave/gopher/index.docbook diff --git a/doc/en_GB/CMakeLists.txt b/doc/en_GB/CMakeLists.txt deleted file mode 100644 index d0af40d..0000000 --- a/doc/en_GB/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG en_GB DESTINATION tdeio-gopher ) diff --git a/doc/en_GB/index.docbook b/doc/en_GB/tdeioslave/gopher/index.docbook index 60e7881..60e7881 100644 --- a/doc/en_GB/index.docbook +++ b/doc/en_GB/tdeioslave/gopher/index.docbook diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt deleted file mode 100644 index 3d8554c..0000000 --- a/doc/es/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG es DESTINATION tdeio-gopher ) diff --git a/doc/es/index.docbook b/doc/es/tdeioslave/gopher/index.docbook index a38f1e9..a38f1e9 100644 --- a/doc/es/index.docbook +++ b/doc/es/tdeioslave/gopher/index.docbook diff --git a/doc/et/CMakeLists.txt b/doc/et/CMakeLists.txt deleted file mode 100644 index b5e20cc..0000000 --- a/doc/et/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG et DESTINATION tdeio-gopher ) diff --git a/doc/et/index.docbook b/doc/et/tdeioslave/gopher/index.docbook index 84abb1a..84abb1a 100644 --- a/doc/et/index.docbook +++ b/doc/et/tdeioslave/gopher/index.docbook diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt deleted file mode 100644 index 3b3e37b..0000000 --- a/doc/fr/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG fr DESTINATION tdeio-gopher ) diff --git a/doc/fr/index.docbook b/doc/fr/tdeioslave/gopher/index.docbook index 59165ea..59165ea 100644 --- a/doc/fr/index.docbook +++ b/doc/fr/tdeioslave/gopher/index.docbook diff --git a/doc/gl/CMakeLists.txt b/doc/gl/CMakeLists.txt deleted file mode 100644 index c210e3f..0000000 --- a/doc/gl/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG gl DESTINATION tdeio-gopher ) diff --git a/doc/gl/index.docbook b/doc/gl/tdeioslave/gopher/index.docbook index ce3acc2..ce3acc2 100644 --- a/doc/gl/index.docbook +++ b/doc/gl/tdeioslave/gopher/index.docbook diff --git a/doc/hu/CMakeLists.txt b/doc/hu/CMakeLists.txt deleted file mode 100644 index 9dfb4db..0000000 --- a/doc/hu/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG hu DESTINATION tdeio-gopher ) diff --git a/doc/hu/index.docbook b/doc/hu/tdeioslave/gopher/index.docbook index d951cf3..d951cf3 100644 --- a/doc/hu/index.docbook +++ b/doc/hu/tdeioslave/gopher/index.docbook diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt deleted file mode 100644 index 131e902..0000000 --- a/doc/it/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG it DESTINATION tdeio-gopher ) diff --git a/doc/it/index.docbook b/doc/it/tdeioslave/gopher/index.docbook index 6f6d3a6..6f6d3a6 100644 --- a/doc/it/index.docbook +++ b/doc/it/tdeioslave/gopher/index.docbook diff --git a/doc/nl/CMakeLists.txt b/doc/nl/CMakeLists.txt deleted file mode 100644 index 79536e6..0000000 --- a/doc/nl/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG nl DESTINATION tdeio-gopher ) diff --git a/doc/nl/index.docbook b/doc/nl/tdeioslave/gopher/index.docbook index dac8c2d..dac8c2d 100644 --- a/doc/nl/index.docbook +++ b/doc/nl/tdeioslave/gopher/index.docbook diff --git a/doc/pl/CMakeLists.txt b/doc/pl/CMakeLists.txt deleted file mode 100644 index 8383110..0000000 --- a/doc/pl/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG pl DESTINATION tdeio-gopher ) diff --git a/doc/pl/index.docbook b/doc/pl/tdeioslave/gopher/index.docbook index d48f590..d48f590 100644 --- a/doc/pl/index.docbook +++ b/doc/pl/tdeioslave/gopher/index.docbook diff --git a/doc/pt/CMakeLists.txt b/doc/pt/CMakeLists.txt deleted file mode 100644 index fa081d0..0000000 --- a/doc/pt/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG pt DESTINATION tdeio-gopher ) diff --git a/doc/pt/index.docbook b/doc/pt/tdeioslave/gopher/index.docbook index 946e4a5..946e4a5 100644 --- a/doc/pt/index.docbook +++ b/doc/pt/tdeioslave/gopher/index.docbook diff --git a/doc/pt_BR/CMakeLists.txt b/doc/pt_BR/CMakeLists.txt deleted file mode 100644 index 157edd6..0000000 --- a/doc/pt_BR/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG pt_BR DESTINATION tdeio-gopher ) diff --git a/doc/pt_BR/index.docbook b/doc/pt_BR/tdeioslave/gopher/index.docbook index f003c17..f003c17 100644 --- a/doc/pt_BR/index.docbook +++ b/doc/pt_BR/tdeioslave/gopher/index.docbook diff --git a/doc/ro/CMakeLists.txt b/doc/ro/CMakeLists.txt deleted file mode 100644 index ece5d82..0000000 --- a/doc/ro/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG ro DESTINATION tdeio-gopher ) diff --git a/doc/ro/index.docbook b/doc/ro/tdeioslave/gopher/index.docbook index 9b69b89..9b69b89 100644 --- a/doc/ro/index.docbook +++ b/doc/ro/tdeioslave/gopher/index.docbook diff --git a/doc/ru/CMakeLists.txt b/doc/ru/CMakeLists.txt deleted file mode 100644 index b422eab..0000000 --- a/doc/ru/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG ru DESTINATION tdeio-gopher ) diff --git a/doc/ru/index.docbook b/doc/ru/tdeioslave/gopher/index.docbook index d665552..d665552 100644 --- a/doc/ru/index.docbook +++ b/doc/ru/tdeioslave/gopher/index.docbook diff --git a/doc/sk/tdeioslave/gopher/index.docbook b/doc/sk/tdeioslave/gopher/index.docbook new file mode 100644 index 0000000..998681d --- /dev/null +++ b/doc/sk/tdeioslave/gopher/index.docbook @@ -0,0 +1,18 @@ +<?xml version="1.0" ?> +<!DOCTYPE article PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ + <!ENTITY % addindex "IGNORE"> + <!ENTITY % Slovak "INCLUDE"> <!-- change language only here --> +]> + +<article lang="&language;" id="gopher"> +<title>gopher</title> + +<para> <command>gopher</command> začal ako distribuovaná informačná služba na University of Minnesota. Gopher umožňuje prístup k informáciám na serveroch Gopher na počítačoch v Internete.</para> + +<para> Gopher je prehliadacia internetová služba, ktorá používa rozhranie menu. Používateľ vyberie informáciu z menu a vráti sa nové menu alebo sa zobrazí textový súbor. Položky môžu byť na pôvodnom serveri Gopher alebo na inom serveri (alebo počítači). Gopher dokáže <quote>tunelovať</quote> z jedného Gophera na iný bez toho, aby si to používateľ všimol. Gopher udržiava presné umiestnenie počítačov skryté, takže vytvára <quote>ilúziu</quote> jedného veľkého systému spojených menu. </para> + +<para> Gopher umožňuje ukladať umiestnenia do <quote>záložiek</quote>, takže používateľ môže sledovať <quote>záložku</quote> priamo namiesto hľadania v menu. Menu Gopheru nie sú štandardizované. </para> + +<para> Zdroj: <ulink url="http://tlc.nlm.nih.gov/resources/tutorials/internetdistlrn/gophrdef.htm">http://tlc.nlm.nih.gov/resources/tutorials/internetdistlrn/gophrdef.htm</ulink> </para> +</article> + diff --git a/doc/sr/CMakeLists.txt b/doc/sr/CMakeLists.txt deleted file mode 100644 index 1e95433..0000000 --- a/doc/sr/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG sr DESTINATION tdeio-gopher ) diff --git a/doc/sr/index.docbook b/doc/sr/tdeioslave/gopher/index.docbook index 11df8f4..11df8f4 100644 --- a/doc/sr/index.docbook +++ b/doc/sr/tdeioslave/gopher/index.docbook diff --git a/doc/sr@Latn/CMakeLists.txt b/doc/sr@Latn/CMakeLists.txt deleted file mode 100644 index 2df17b1..0000000 --- a/doc/sr@Latn/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG sr@Latn DESTINATION tdeio-gopher ) diff --git a/doc/sr@Latn/index.docbook b/doc/sr@Latn/tdeioslave/gopher/index.docbook index 86ec48d..86ec48d 100644 --- a/doc/sr@Latn/index.docbook +++ b/doc/sr@Latn/tdeioslave/gopher/index.docbook diff --git a/doc/sv/CMakeLists.txt b/doc/sv/CMakeLists.txt deleted file mode 100644 index c8ec49d..0000000 --- a/doc/sv/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG sv DESTINATION tdeio-gopher ) diff --git a/doc/sv/index.docbook b/doc/sv/tdeioslave/gopher/index.docbook index d25bde5..d25bde5 100644 --- a/doc/sv/index.docbook +++ b/doc/sv/tdeioslave/gopher/index.docbook diff --git a/doc/uk/CMakeLists.txt b/doc/uk/CMakeLists.txt deleted file mode 100644 index 73d753a..0000000 --- a/doc/uk/CMakeLists.txt +++ /dev/null @@ -1,12 +0,0 @@ -################################################# -# -# (C) 2011 Timothy Pearson -# kb9vqf (AT) pearsoncomputing.net -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -tde_create_handbook( LANG uk DESTINATION tdeio-gopher ) diff --git a/doc/uk/index.docbook b/doc/uk/tdeioslave/gopher/index.docbook index d2beed1..d2beed1 100644 --- a/doc/uk/index.docbook +++ b/doc/uk/tdeioslave/gopher/index.docbook diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt deleted file mode 100644 index 42b186a..0000000 --- a/translations/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -tde_auto_add_subdirectories() diff --git a/translations/messages/CMakeLists.txt b/translations/messages/CMakeLists.txt deleted file mode 100644 index 75c89f8..0000000 --- a/translations/messages/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po ) -string( REGEX REPLACE "[ \r\n\t]+" ";" _linguas "$ENV{LINGUAS}" ) - -foreach( _po ${po_files} ) - get_filename_component( _lang ${_po} NAME_WE ) - if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" ) - if( "${_po}" MATCHES "^([^/]*)/.*" ) - string( REGEX REPLACE "^([^/]*)/.*" "\\1" _component "${_po}" ) - else( ) - set( _component "${PROJECT_NAME}" ) - endif( ) - tde_create_translation( FILES ${_po} LANG ${_lang} OUTPUT_NAME ${_component} ) - endif( ) -endforeach( ) |