2013-09-20 22:32:05 +00:00
|
|
|
#!/bin/sh
|
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="\
|
2019-12-17 18:27:55 +00:00
|
|
|
core/locale \
|
2019-12-19 14:08:28 +00:00
|
|
|
router/locale \
|
2011-03-02 19:31:18 +00:00
|
|
|
apps/routerconsole/locale \
|
2013-07-13 23:38:11 +00:00
|
|
|
apps/routerconsole/locale-news \
|
2013-10-14 15:29:12 +00:00
|
|
|
apps/routerconsole/locale-countries \
|
2011-03-02 19:31:18 +00:00
|
|
|
apps/i2ptunnel/locale \
|
2013-07-13 19:58:11 +00:00
|
|
|
apps/i2ptunnel/locale-proxy \
|
2011-03-02 19:31:18 +00:00
|
|
|
apps/i2psnark/locale \
|
2014-06-23 20:10:11 +00:00
|
|
|
apps/ministreaming/locale \
|
2011-03-02 19:31:18 +00:00
|
|
|
apps/susidns/locale \
|
2011-03-19 16:37:53 +00:00
|
|
|
apps/susimail/locale \
|
2011-06-26 19:07:01 +00:00
|
|
|
apps/desktopgui/locale \
|
2013-06-14 01:27:58 +00:00
|
|
|
installer/resources/locale/po \
|
2017-01-27 16:10:00 +00:00
|
|
|
installer/resources/locale-man \
|
2011-06-26 19:07:01 +00:00
|
|
|
debian/po"
|
2011-03-02 19:31:18 +00:00
|
|
|
|
2017-01-26 15:47:42 +00:00
|
|
|
FILES="installer/resources/locale-man/man.pot"
|
|
|
|
|
|
|
|
for i in `find $DIRS -maxdepth 1 -type f -name \*.po` $FILES
|
2011-03-02 19:31:18 +00:00
|
|
|
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
|