#! /bin/sh

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

head='1 { \n'

head=$head' dummy name \n'
head=$head' kind \n'
head=$head' rate ave_n \n'
head=$head' price \n'
head=$head' fill_rate \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
