forked from i2p/i2p.i2p
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckpo.sh
executable file
·48 lines (43 loc) · 946 Bytes
/
checkpo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
#
# Run 'msgfmt -c' on all .po files
# Returns nonzero on failure
#
# zzz 2011-02
# public domain
#
cd `dirname $0`/../..
DIRS="\
core/locale \
router/locale \
apps/routerconsole/locale \
apps/routerconsole/locale-news \
apps/routerconsole/locale-countries \
apps/i2ptunnel/locale \
apps/i2ptunnel/locale-proxy \
apps/i2psnark/locale \
apps/ministreaming/locale \
apps/susidns/locale \
apps/susimail/locale \
apps/desktopgui/locale \
installer/resources/locale/po \
installer/resources/locale-man \
debian/po"
FILES="installer/resources/locale-man/man.pot"
for i in `find $DIRS -maxdepth 1 -type f -name \*.po` $FILES
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