source: tests/scripts/checkpo.sh @ 90a70eb

i2p-0.8.9
Last change on this file since 90a70eb was 90a70eb, checked in by zzz <zzz@…>, 9 years ago

dont create messages.mo file

  • Property mode set to 100755
File size: 640 bytes
Line 
1#
2# Run 'msgfmt -c' on all .po files
3# Returns nonzero on failure
4#
5# zzz 2011-02
6# public domain
7#
8
9cd `dirname $0`/../..
10
11DIRS="\
12  apps/routerconsole/locale \
13  apps/i2ptunnel/locale \
14  apps/i2psnark/locale \
15  apps/susidns/locale \
16  apps/susimail/locale \
17  apps/desktopgui/locale \
18  debian/po"
19
20for i in `find $DIRS -maxdepth 1 -type f -name *.po`
21do
22        echo "Checking $i ..."
23        msgfmt -c $i -o /dev/null
24        if [ $? -ne 0 ]
25        then
26                echo "********* FAILED CHECK FOR $i *************"
27                FAIL=1
28        fi
29done
30
31if [ "$FAIL" != "" ]
32then
33        echo "******** At least one file failed check *********"
34else
35        echo "All files passed"
36fi
37exit $FAIL
Note: See TracBrowser for help on using the repository browser.