1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-06 03:50:19 +02:00

updated stats script

This commit is contained in:
Nikolay Pultsin 2012-04-15 18:15:28 +01:00
parent 4dc710b249
commit cf1c0e35c1

View file

@ -6,5 +6,9 @@ for file in ../../assets/resources/application/*.xml; do
all_lcount=`egrep 'name=.+value="' $lfile | wc | awk '{ print $1 }'`
neg_count=`fgrep toBeTranslated $file | wc | awk '{ print $1 }'`
neg_lcount=`fgrep toBeTranslated $lfile | wc | awk '{ print $1 }'`
if [ "$1" == "-html" ]; then
echo "<tr><td>$lang</td><td>$(($all_count+$all_lcount))</td><td>$(($neg_count+$neg_lcount))</td>"
else
echo $lang $(($neg_count+$neg_lcount)) of $(($all_count+$all_lcount))
fi
done