diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/CMakeLists.txt | 21 | ||||
-rw-r--r-- | doc/en/CMakeLists.txt (renamed from doc/kiosktool/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | doc/en/extra-steps.docbook (renamed from doc/kiosktool/extra-steps.docbook) | 0 | ||||
-rw-r--r-- | doc/en/index.docbook (renamed from doc/kiosktool/index.docbook) | 0 | ||||
-rw-r--r-- | doc/en/introduction.docbook (renamed from doc/kiosktool/introduction.docbook) | 0 | ||||
-rw-r--r-- | doc/en/profile-assign.docbook (renamed from doc/kiosktool/profile-assign.docbook) | 0 | ||||
-rw-r--r-- | doc/en/profile-create.docbook (renamed from doc/kiosktool/profile-create.docbook) | 0 | ||||
-rw-r--r-- | doc/en/profile-setup.docbook (renamed from doc/kiosktool/profile-setup.docbook) | 0 | ||||
-rw-r--r-- | doc/en/profiles.docbook (renamed from doc/kiosktool/profiles.docbook) | 0 | ||||
-rw-r--r-- | doc/en/settings.docbook (renamed from doc/kiosktool/settings.docbook) | 0 |
10 files changed, 14 insertions, 7 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index f2efba2..70d6348 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,7 +1,14 @@ -add_subdirectory( ${PROJECT_NAME} ) -add_subdirectory( man ) -add_subdirectory( da ) -add_subdirectory( it ) -add_subdirectory( nl ) -add_subdirectory( pt ) -add_subdirectory( sv ) +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/kiosktool/CMakeLists.txt b/doc/en/CMakeLists.txt index ba3ef3e..ba3ef3e 100644 --- a/doc/kiosktool/CMakeLists.txt +++ b/doc/en/CMakeLists.txt diff --git a/doc/kiosktool/extra-steps.docbook b/doc/en/extra-steps.docbook index da9c35e..da9c35e 100644 --- a/doc/kiosktool/extra-steps.docbook +++ b/doc/en/extra-steps.docbook diff --git a/doc/kiosktool/index.docbook b/doc/en/index.docbook index 99a6000..99a6000 100644 --- a/doc/kiosktool/index.docbook +++ b/doc/en/index.docbook diff --git a/doc/kiosktool/introduction.docbook b/doc/en/introduction.docbook index 629a78d..629a78d 100644 --- a/doc/kiosktool/introduction.docbook +++ b/doc/en/introduction.docbook diff --git a/doc/kiosktool/profile-assign.docbook b/doc/en/profile-assign.docbook index 057f1fc..057f1fc 100644 --- a/doc/kiosktool/profile-assign.docbook +++ b/doc/en/profile-assign.docbook diff --git a/doc/kiosktool/profile-create.docbook b/doc/en/profile-create.docbook index f455920..f455920 100644 --- a/doc/kiosktool/profile-create.docbook +++ b/doc/en/profile-create.docbook diff --git a/doc/kiosktool/profile-setup.docbook b/doc/en/profile-setup.docbook index 31384e8..31384e8 100644 --- a/doc/kiosktool/profile-setup.docbook +++ b/doc/en/profile-setup.docbook diff --git a/doc/kiosktool/profiles.docbook b/doc/en/profiles.docbook index 4a20a1d..4a20a1d 100644 --- a/doc/kiosktool/profiles.docbook +++ b/doc/en/profiles.docbook diff --git a/doc/kiosktool/settings.docbook b/doc/en/settings.docbook index d4e4a78..d4e4a78 100644 --- a/doc/kiosktool/settings.docbook +++ b/doc/en/settings.docbook |