aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChusslove Illich <caslav.ilic@gmx.net>2007-07-18 00:04:58 +0000
committerChusslove Illich <caslav.ilic@gmx.net>2007-07-18 00:04:58 +0000
commit03bfecd1cc3e1c9677762d315bc3e7cd4ee76767 (patch)
tree326127de903eb4e2cd9d88cba6c1e7df4c548e58
parent06188a53edc18b08ec3e30b489ab5e99a71633b5 (diff)
downloadextra-cmake-modules-03bfecd1cc3e1c9677762d315bc3e7cd4ee76767.tar.gz
extra-cmake-modules-03bfecd1cc3e1c9677762d315bc3e7cd4ee76767.tar.bz2
Do not install SVN support files in l10n/ll/scripts.
svn path=/trunk/KDE/kdelibs/; revision=689251
-rw-r--r--modules/KDE4Macros.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 178c9724..419205be 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -262,8 +262,11 @@ endmacro(KDE4_INSTALL_PO_FILES)
macro(KDE4_INSTALL_TS_FILES _lang _sdir)
file(GLOB_RECURSE _ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_sdir}/*)
foreach(_current_TS_FILES ${_ts_files})
- get_filename_component(_subpath ${_current_TS_FILES} PATH)
- install(FILES ${_current_TS_FILES} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_SCRIPTS/${_subpath})
+ string(REGEX MATCH "\\.svn/" _in_svn ${_current_TS_FILES})
+ if(NOT _in_svn)
+ get_filename_component(_subpath ${_current_TS_FILES} PATH)
+ install(FILES ${_current_TS_FILES} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_SCRIPTS/${_subpath})
+ endif(NOT _in_svn)
endforeach(_current_TS_FILES)
endmacro(KDE4_INSTALL_TS_FILES)