Files
i2p.i2p/tests/scripts/checkpo.sh

39 lines
674 B
Bash
Raw Normal View History

2011-03-02 19:31:18 +00:00
#
# Run 'msgfmt -c' on all .po files
# Returns nonzero on failure
#
# zzz 2011-02
# public domain
#
cd `dirname $0`/../..
DIRS="\
apps/routerconsole/locale \
apps/i2ptunnel/locale \
apps/i2psnark/locale \
apps/susidns/locale \
2011-03-19 16:37:53 +00:00
apps/susimail/locale \
apps/desktopgui/locale \
installer/resources/locale/po \
debian/po"
2011-03-02 19:31:18 +00:00
for i in `find $DIRS -maxdepth 1 -type f -name *.po`
do
echo "Checking $i ..."
2011-10-11 14:04:51 +00:00
msgfmt -c $i -o /dev/null
2011-03-02 19:31:18 +00:00
if [ $? -ne 0 ]
then
echo "********* FAILED CHECK FOR $i *************"
FAIL=1
fi
done
if [ "$FAIL" != "" ]
then
echo "******** At least one file failed check *********"
else
echo "All files passed"
fi
exit $FAIL