source: tests/scripts/checkpo.sh @ d9c6360

Last change on this file since d9c6360 was d9c6360, checked in by zzz <zzz@…>, 4 years ago

Build: Set up man pages for translation.
No ant targets yet.

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