#! /bin/sh

in_file="./item-stick-tab.h"
out_file="../ex-data/item-stick-tab.csv"

head='1 { \n'

head=$head' dummy name \n'
head=$head' rate use_n \n'
head=$head' stick_kind spell_kind \n'
head=$head' min_lev max_lev sgn_lev \n'
head=$head' price \n'
head=$head' dummy material identified \n'

head=$head' } \n'

####

if [ -f $out_file ]; then
	rm $out_file
fi

for a in $head
do
	echo -n "\"$a\"," >> $out_file
done
echo "" >> $out_file

../sh/rcv-tab.awk $in_file >> $out_file
