#! /bin/sh

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

head='1 { \n'

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