Files
i2p.i2p/tests/scripts/checkpo.sh
zzz 2f10cca40f * Fixes after review:
- Fix Polish po file
    - Install as a service by default on Windows again
    - Change CPUID getters to package private
    - Split new jbigi install messages into two lines
    - Javadocs
2011-06-26 19:07:01 +00:00

38 lines
627 B
Bash
Executable File

#
# 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 \
apps/susimail/locale \
apps/desktopgui/locale \
debian/po"
for i in `find $DIRS -maxdepth 1 -type f -name *.po`
do
echo "Checking $i ..."
msgfmt -c $i
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