forked from I2P_Developers/i2p.www
checkpo script
This commit is contained in:
29
checkpo.sh
Executable file
29
checkpo.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Run 'msgfmt -c' on all .po files
|
||||
# Returns nonzero on failure
|
||||
#
|
||||
# zzz 2011-02
|
||||
# public domain
|
||||
#
|
||||
|
||||
DIRS=i2p2www/translations/*/LC_MESSAGES
|
||||
|
||||
for i in `find $DIRS -maxdepth 1 -type f -name \*.po`
|
||||
do
|
||||
echo "Checking $i ..."
|
||||
msgfmt -c $i -o /dev/null
|
||||
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
|
Reference in New Issue
Block a user