summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJindrich Novy <jnovy@redhat.com>2008-10-07 22:06:28 +0200
committerJindrich Novy <jnovy@redhat.com>2008-10-07 22:06:28 +0200
commit9e89ea52f5b3ac84bd7e63a20dba004a7ddd8acc (patch)
tree275c9759dedd0044ab6a448e2657ac37255c588d /scripts
parent30a975b9839b3cb15a8cd9c1ead454464523028a (diff)
downloadlibrpm-tizen-9e89ea52f5b3ac84bd7e63a20dba004a7ddd8acc.tar.gz
librpm-tizen-9e89ea52f5b3ac84bd7e63a20dba004a7ddd8acc.tar.bz2
librpm-tizen-9e89ea52f5b3ac84bd7e63a20dba004a7ddd8acc.zip
make %find_lang --with-kde work (rhbz#466009)
- patch from Rex Dieter
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find-lang.sh26
1 files changed, 21 insertions, 5 deletions
diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh
index 8bcd63e83..283bcacee 100755
--- a/scripts/find-lang.sh
+++ b/scripts/find-lang.sh
@@ -133,15 +133,31 @@ s:^[^%].*::
s:%lang(C) ::
/^$/d' >> $MO_NAME
-find $TOP_DIR -type d|sed '
+KDE3_HTML=`kde-config --expandvars --install html 2>/dev/null`
+if [ x"$KDE3_HTML" != x -a -d "$TOP_DIR$KDE3_HTML" ]; then
+find $TOP_DIR$KDE3_HTML -type d|sed '
+s:'"$TOP_DIR"'::
+'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
+'"$NO_ALL_NAME$KDE"'s:\(.*/HTML\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3:
+'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
+'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3:
+s:^\([^%].*\)::
+s:%lang(C) ::
+/^$/d' >> $MO_NAME
+fi
+
+KDE4_HTML=`kde4-config --expandvars --install html 2>/dev/null`
+if [ x"$KDE4_HTML" != x -a -d "$TOP_DIR$KDE4_HTML" ]; then
+find $TOP_DIR$KDE4_HTML -type d|sed '
s:'"$TOP_DIR"'::
-'"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
-'"$NO_ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3:
-'"$ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
-'"$ALL_NAME$KDE"'s:\(.*/doc/kde/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3:
+'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'/\)::
+'"$NO_ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/'"$NAME"'\)$:%lang(\2) \1\2\3:
+'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+/\)::
+'"$ALL_NAME$KDE"'s:\(.*/HTML/\)\([^/_]\+\)\(.*/[a-zA-Z0-9.\_\-]\+$\):%lang(\2) \1\2\3:
s:^\([^%].*\)::
s:%lang(C) ::
/^$/d' >> $MO_NAME
+fi
find $TOP_DIR -type f -o -type l|sed '
s:'"$TOP_DIR"'::