4 # Shell script to produce counts of just how out of date the translations are!
6 # Accepts optional parameters of a list of files to produce counts from
7 # Defaults to using all files
9 # Written by Robin Johnson <robbat2 at users.sourceforge.net>
13 translationmatch
='//to translate'
14 suffixtoremove
='.inc.php'
16 if [ -z "${srcfilelist}" ]; then
17 srcfilelist
="*.inc.php"
20 for i
in ${srcfilelist}; do
21 if [ ! -e ${i} ]; then
25 destfilelist
="${destfilelist} ${i}"
28 destfilelist
=`echo ${destfilelist} | xargs -n1 | egrep '.inc.php$'`
29 if [ ! -z "${destfilelist}" ]; then
30 grep -c -- "${translationmatch}" ${destfilelist} | sort -t':' -n +1 | sed -e "s/${suffixtoremove}//g" |
xargs -n1 |
egrep -v ':0$'