3 # Generate LocaleKit's CountryFlags.rdef
4 # from all flag rdefs in the current folder
6 destination
=CountryFlags.rdef
11 id
=`echo "$file" | cut -b -2`
12 name
=`echo "${file%%.*}" | cut -b 4-`
14 echo "// Flag data for $name" >> $destination
15 echo "resource($nr,\"$id\") #'VICN' array {" >> $destination
16 tail -n +3 "$file" >> $destination
20 echo \
$nr, $name, $id... OK