4 # Shell script to make each language file neat and tidy
6 # Robin Johnson <robbat2@users.sourceforge.net>
17 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"
19 for i
in $STRINGORDER;
21 egrep '^\$str'$i $in |
sort >> $out
32 TRANSLATIONSTRING
='//.*translate.*$'
33 STRINGSTRING
='^\$str[[:alnum:]_]+'
34 WHITESPACE
='^[[:blank:]]*$'
39 egrep -i -v $TRANSLATIONSTRING $f | \
40 egrep -v "$STRINGSTRING|$CVSID|\?>|<\?php" >> $targetdir/head
43 egrep "$CVSID" $f >>$targetdir/cvs
46 egrep -i -v "$WHITESPACE|$TRANSLATIONSTRING" $f | \
47 egrep $STRINGSTRING > $targetdir/tmp-tosort
49 echo -n " pending_translations"
50 egrep -i "$STRINGSTRING.*$TRANSLATIONSTRING" $f > $targetdir/tmp-translate
55 specialsort
$targetdir/tmp-tosort
$targetdir/sort
57 echo -n " pending_translations"
58 if [ -s $targetdir/tmp-translate
] ; then
59 echo '// To translate:' > $targetdir/translate
60 specialsort
$targetdir/tmp-translate
$targetdir/translate
62 echo -n > $targetdir/translate
66 echo "Assembling final"
68 cat $targetdir/cvs
$targetdir/head $targetdir/sort $targetdir/translate \
75 echo "-------------------------------------------------------------------"
79 echo "$i is not a file, skipping"
84 echo "-------------------------------------------------------------------"