#! /bin/csh -f
echo "" >! commands.h
foreach i (`cat files`)
	set i = `echo $i | sed 's/\./ /g'`
	set filename = $i[1].h
	set name = '"'$i[1]'"'
	set id = `echo $i[1] | upcase`
	set arg = ARG_`echo $i[2] | upcase`
	set fn = $i[3]
	echo "#ifdef NAMES" >! $filename
	echo "use($name,$id,$fn,$arg)" >> $filename
	echo "#endif" >> $filename
	echo '#include "Commands/'$filename'"' >> commands.h
	echo $name done
end
mv commands.h ..
#upcase chcase