#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>
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
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