3
# Convert map text files into the haxe Map.hx class
9
echo "/*Generated by genmaps.sh*/" > $out
10
echo "package fortress;" >> $out
11
echo "class Maps" >> $out
14
# generate landmap data
15
echo -e "\tstatic public var data = [" >> $out
17
# Use ls to ensure in sorted order
21
# separator if there was a previous item
22
if [ $count -gt 0 ]; then
23
echo -ne "\t," >> $out
28
./convert.pl $i >> $out || exit -1
31
echo -e "\t];" >> $out