1#!/bin/tcsh 2 3foreach file ( $* ) 4 cat $file | grep -v " en-US " > $file.tmp 5 set lang = `head -1 $file.tmp | cut -f 10` 6 if ( $lang == "" ) then 7 echo "Lang = $lang in $file ... ???"; 8 exit(-1) 9 else if ( $lang == "#" ) then 10 echo "File $file contains already header .. pls remove or fix me!" 11 exit(-1) 12 else 13 echo "Processing language $lang" 14 cat header $file.tmp > $file.tmp.tmp 15 mkdir $lang 16 cp $file.tmp.tmp $lang/localize.sdf 17 endif 18 rm $file.tmp $file.tmp.tmp 19end 20