source: tests/scripts/checkpo.sh @ 2f10cca

Last change on this file since 2f10cca was 2f10cca, checked in by zzz <zzz@…>, 10 years ago
  • 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
  • Property mode set to 100755
File size: 627 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
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.