diff options
| author | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-05-25 17:04:12 +0200 |
|---|---|---|
| committer | Tomáš Chvátal <scarabeus@gentoo.org> | 2009-05-25 17:04:12 +0200 |
| commit | 62b7886643a4a600b27f0d1423285b888ea6262b (patch) | |
| tree | 1181e4c57db2152ee8d91c1dea5f37b85739b42f | |
| parent | 2be3be7cf2ba72b28a5bf3148688fd9934a17576 (diff) | |
| download | kde-62b7886643a4a600b27f0d1423285b888ea6262b.tar.gz kde-62b7886643a4a600b27f0d1423285b888ea6262b.tar.bz2 kde-62b7886643a4a600b27f0d1423285b888ea6262b.zip | |
[eclasses] Try to make tampakrap happy by changing linguas handling code.
| -rw-r--r-- | eclass/kde4-functions.eclass | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index d629d8acac6..58bf05038f7 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -152,17 +152,19 @@ enable_selected_linguas() { fi done comment_all_add_subdirectory "${KDE_LINGUAS_DIR}" - for lingua in ${LINGUAS}; do - ebegin "Enabling LANGUAGE: ${lingua}" - if [[ -d "${lingua}" ]]; then - sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ - -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ - -i CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." - fi - if [[ -e "${lingua}.po.old" ]]; then - mv "${lingua}.po.old" "${lingua}.po" + for lingua in ${KDE_LINGUAS}; do + if use linguas_${lingua} ; then + ebegin "Enabling LANGUAGE: ${lingua}" + if [[ -d "${lingua}" ]]; then + sed -e "/add_subdirectory([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ + -e "/ADD_SUBDIRECTORY([[:space:]]*${lingua}[[:space:]]*)[[:space:]]*$/ s/^#DONOTCOMPILE //" \ + -i CMakeLists.txt || die "Sed to uncomment linguas_${lingua} failed." + fi + if [[ -e "${lingua}.po.old" ]]; then + mv "${lingua}.po.old" "${lingua}.po" + fi + eend $? fi - eend $? done } |
