summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2010-05-20 11:35:16 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-05-20 11:35:16 +0300
commit2d468d2cd9d2a5e2f9adcdecdd9f017fe04eb77a (patch)
tree07138ac8d23e95d1ef5e91e3a690fbfadcde5629 /scripts
parente63293b0ea1c6a3a4be6aca328ee9fae4c3bfcdb (diff)
downloadrpm-2d468d2cd9d2a5e2f9adcdecdd9f017fe04eb77a.tar.gz
Search all locale dirs in find-lang.sh, not just those under share/ (#159)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find-lang.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh
index bb25b317e..e33ed0cca 100755
--- a/scripts/find-lang.sh
+++ b/scripts/find-lang.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#findlang - automagically generate list of language specific files
#for inclusion in an rpm spec file.
-#This does assume that the *.mo files are under .../share/locale/...
+#This does assume that the *.mo files are under .../locale/...
#Run with no arguments gets a usage message.
#findlang is copyright (c) 1998 by W. L. Estes <wlestes@uncg.edu>
@@ -99,8 +99,8 @@ done
find $TOP_DIR -type f -o -type l|sed '
s:'"$TOP_DIR"'::
-'"$ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
-'"$NO_ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
+'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
+'"$NO_ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
s:^\([^%].*\)::
s:%lang(C) ::
/^$/d' > $MO_NAME