mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
8c54af563c
* Removed trailing whitespace and empty lines at top of files.
22 lines
443 B
Bash
Executable File
22 lines
443 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Generate LocaleKit's CountryFlags.rdef
|
|
# from all flag rdefs in the current folder
|
|
|
|
destination=CountryFlags.rdef
|
|
nr=0
|
|
|
|
for file in *
|
|
do
|
|
id=`echo "$file" | cut -b -2`
|
|
name=`echo "${file%%.*}" | cut -b 4-`
|
|
|
|
echo "// Flag data for $name" >> $destination
|
|
echo "resource($nr,\"$id\") #'VICN' array {" >> $destination
|
|
tail -n +3 "$file" >> $destination
|
|
echo >> $destination
|
|
|
|
nr=`expr $nr + 1`
|
|
echo \ $nr, $name, $id... OK
|
|
done
|