2011-05-20 21:46:13 +02:00
|
|
|
#!/bin/bash
|
2010-11-03 15:27:31 +01:00
|
|
|
|
|
|
|
TOPDIR=../..
|
2011-05-20 21:46:13 +02:00
|
|
|
RC=0
|
2010-11-03 15:27:31 +01:00
|
|
|
|
|
|
|
if [ ! -f teststrings ]
|
|
|
|
then
|
2011-10-07 17:27:41 +02:00
|
|
|
make
|
2010-11-03 15:27:31 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
for stringfile in ${TOPDIR}/*/*/*.lproj/Localizable.strings
|
|
|
|
do
|
2011-10-07 17:27:41 +02:00
|
|
|
./obj/teststrings "$stringfile" > /dev/null
|
2010-11-03 15:27:31 +01:00
|
|
|
code=$?
|
|
|
|
if test $code -eq 0;
|
|
|
|
then
|
|
|
|
echo "$stringfile: passed";
|
|
|
|
else
|
2011-05-20 21:46:13 +02:00
|
|
|
echo "$stringfile: FAILED (code: $code)";
|
|
|
|
RC=$(($RC+$code))
|
2010-11-03 15:27:31 +01:00
|
|
|
fi
|
|
|
|
done
|
2011-05-20 21:46:13 +02:00
|
|
|
|
|
|
|
exit $RC
|