]> git.pld-linux.org Git - packages/rpm-build-macros.git/blobdiff - rpm-find-lang
now you may use ./configure from %configuredir not only from current dir
[packages/rpm-build-macros.git] / rpm-find-lang
index 4b0b50c68f957ccc458221d9fd737c626df7a3bf..39ddefa4c194141e04938dab08ac1b61f3e9ca9a 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>
@@ -42,6 +43,7 @@ to \$3.
 Additional options:
   --with-gnome         find GNOME help files
   --with-kde           find KDE help files (not implemented yet)
+  --all-name           support for KDE
   --without-mo         not find locales files
 EOF
 exit 1
@@ -126,8 +128,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.039133 seconds and 4 git commands to generate.