]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-find-lang
- added some missing German translations
[packages/rpm.git] / rpm-find-lang
index 4b0b50c68f957ccc458221d9fd737c626df7a3bf..c195e0e61c4175fc145810c47e5d6b8e43d3389d 100644 (file)
@@ -12,6 +12,7 @@
 #work based on this file.
 
 #changes:
+# $Id$
 # 2001-01-08 Micha³ Kochanowicz <mkochano@pld.org.pl>
 #   * --all-name support for KDE.
 # 2000-11-28 Rafa³ Cygnarowski <pascalek@pld.org.pl>
@@ -126,8 +127,8 @@ s:'"$TOP_DIR"'::
 s:^\([^%].*\)::
 s:%lang(C) ::' >> $MO_NAME
 
-if [ "$(cat $MO_NAME | grep -v defattr | wc -w)" -le 0  ]; then
-        echo "Error: international files not found !"
+if [ "$(cat $MO_NAME | egrep -v '(^%defattr|^$)' | wc -l)" -le 0  ]; then
+        echo 'Error: international files not found !'
         exit 1
 fi
 
This page took 0.029368 seconds and 4 git commands to generate.