]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-find-lang
- fixed (finally?) GConf scripts, rel 0.6
[packages/rpm.git] / rpm-find-lang
index d307c48741ec5853babcba9d130d958136332b5c..e1293fbadd5194796794c9003a1c83f27b76d9ad 100644 (file)
@@ -95,15 +95,17 @@ while test $# -gt 0 ; do
     esac
 done    
 
-find $TOP_DIR -type f|sed '
-1i\
-%defattr (644, root, root, 755)
+echo '%defattr(644,root,root,755)' > $MO_NAME
+
+find $TOP_DIR -type f -name \*.mo | xargs -r file | egrep -v ', 1 messages$' |\
+sed '
+s/:.*//
 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:
 s:^\([^%].*\)::
 s:%lang(C) ::
-s:^\$::' | egrep -v '^$' > $MO_NAME
+s:^\$::' | egrep -v '^$' >> $MO_NAME
 
 find $TOP_DIR -type d|sed '
 s:'"$TOP_DIR"'::
This page took 0.031364 seconds and 4 git commands to generate.