File: teststrings.sh

package info (click to toggle)
sogo 2.2.9%2Bgit20141017-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 43,812 kB
  • sloc: objc: 115,592; python: 5,696; sh: 1,380; perl: 861; makefile: 240; xml: 114; sql: 53; php: 43
file content (24 lines) | stat: -rwxr-xr-x 367 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

TOPDIR=../..
RC=0

if [ ! -f teststrings ]
then
    make
fi

for stringfile in ${TOPDIR}/*/*/*.lproj/Localizable.strings
do
    ./obj/teststrings "$stringfile" > /dev/null
    code=$?
    if test $code -eq 0;
    then
        echo "$stringfile: passed";
    else
        echo "$stringfile: FAILED (code: $code)";
	RC=$(($RC+$code))
    fi
done

exit $RC