Panu Matilainen 5004ac
commit 2d468d2cd9d2a5e2f9adcdecdd9f017fe04eb77a
Panu Matilainen 5004ac
Author: Till Maas <opensource@till.name>
Panu Matilainen 5004ac
Date:   Thu May 20 11:35:16 2010 +0300
Panu Matilainen 5004ac
Panu Matilainen 5004ac
    Search all locale dirs in find-lang.sh, not just those under share/ (#159)
Panu Matilainen 5004ac
Panu Matilainen 5004ac
diff --git a/scripts/find-lang.sh b/scripts/find-lang.sh
Panu Matilainen 5004ac
index bb25b31..e33ed0c 100755
Panu Matilainen 5004ac
--- a/scripts/find-lang.sh
Panu Matilainen 5004ac
+++ b/scripts/find-lang.sh
Panu Matilainen 5004ac
@@ -1,7 +1,7 @@
Panu Matilainen 5004ac
 #!/bin/sh
Panu Matilainen 5004ac
 #findlang - automagically generate list of language specific files
Panu Matilainen 5004ac
 #for inclusion in an rpm spec file.
Panu Matilainen 5004ac
-#This does assume that the *.mo files are under .../share/locale/...
Panu Matilainen 5004ac
+#This does assume that the *.mo files are under .../locale/...
Panu Matilainen 5004ac
 #Run with no arguments gets a usage message.
Panu Matilainen 5004ac
 
Panu Matilainen 5004ac
 #findlang is copyright (c) 1998 by W. L. Estes <wlestes@uncg.edu>
Panu Matilainen 5004ac
@@ -99,8 +99,8 @@ done
Panu Matilainen 5004ac
 
Panu Matilainen 5004ac
 find $TOP_DIR -type f -o -type l|sed '
Panu Matilainen 5004ac
 s:'"$TOP_DIR"'::
Panu Matilainen 5004ac
-'"$ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
Panu Matilainen 5004ac
-'"$NO_ALL_NAME$MO"'s:\(.*/share/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
Panu Matilainen 5004ac
+'"$ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
Panu Matilainen 5004ac
+'"$NO_ALL_NAME$MO"'s:\(.*/locale/\)\([^/_]\+\)\(.*/'"$NAME"'\.mo$\):%lang(\2) \1\2\3:
Panu Matilainen 5004ac
 s:^\([^%].*\)::
Panu Matilainen 5004ac
 s:%lang(C) ::
Panu Matilainen 5004ac
 /^$/d' > $MO_NAME