4 # Shell script to make each language file neat and tidy
6 # Robin Johnson <robbat2@users.sourceforge.net>
15 STRINGORDER
="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
17 for i
in $STRINGORDER;
19 egrep '^\$str'$i $in |
sort >> $out
30 TRANSLATIONSTRING
='//.*translate.*$'
31 STRINGSTRING
='^\$str[[:alnum:]_]+'
32 WHITESPACE
='^[[:blank:]]*$'
37 egrep -i -v $TRANSLATIONSTRING $f | \
38 egrep -v "$STRINGSTRING|$CVSID|\?>|<\?php" >> $targetdir/head
41 egrep "$CVSID" $f >>$targetdir/cvs
44 egrep -i -v "$WHITESPACE|$TRANSLATIONSTRING" $f | \
45 egrep $STRINGSTRING > $targetdir/tmp-tosort
47 echo -n " pending_translations"
48 egrep -i "$STRINGSTRING.*$TRANSLATIONSTRING" $f > $targetdir/tmp-translate
53 specialsort
$targetdir/tmp-tosort
$targetdir/sort
55 echo -n " pending_translations"
56 if [ -s $targetdir/tmp-translate
] ; then
57 echo '// To translate:' > $targetdir/translate
58 specialsort
$targetdir/tmp-translate
$targetdir/translate
60 echo -n > $targetdir/translate
64 echo "Assembling final"
66 cat $targetdir/cvs
$targetdir/head $targetdir/sort $targetdir/translate \
73 echo "-------------------------------------------------------------------"
77 echo "$i is not a file, skipping"
82 echo "-------------------------------------------------------------------"