Threshold configurable by parameter

This commit is contained in:
Michal Čihař
2011-04-05 15:31:15 +02:00
parent e269e34a4f
commit 3289a49a6b

View File

@@ -10,6 +10,10 @@ set -e
#
THRESHOLD=50
if [ ! -z "$1" ] ; then
THRESHOLD=$1
fi
check() {
lang=`echo $1 | sed 's@po/\(.*\)\.po@\1@'`
STATS=`LANG=C msgfmt --statistics -o /dev/null $1 2>&1`
@@ -36,11 +40,6 @@ check() {
fi
}
if [ ! -z "$1" ] ; then
check po/$1.po
exit 0
fi
for x in po/*.po ; do
check $x
done