blob: 4d9f2a6c945aadb9778b045055079ef17e06837e (
plain)
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
|
#!/bin/sh
if [ x$1 = x--quiet ] ; then
stats=""
shift
else
stats="--statistics"
fi
compile() {
if [ ! -z "$stats" ] ; then
echo -n "$1: "
fi
msgfmt $stats --check -o ${1%.po}.mo $1
return $?
}
if [ ! -z "$1" ] ; then
compile po/$1.po
exit $?
fi
result=0
for x in locale/*/LC_MESSAGES/sqlparser.po ; do
compile $x
ret=$?
if [ $ret != 0 ] ; then
tput setf 4 >&2
echo Error when compiling $x >&2
tput sgr0 >&2
result=$ret
fi
done
exit $result
|