# !/bin/sh
CURDIR=$1
rm -f $CURDIR/debian/crystalspace-data.menu

for videotype in software opengl
do

#for name in dmburg #maze newsky room sydney #jngtest mazedex
#do
#	cat >> $CURDIR/debian/crystalspace-data.menu <<-FIN
#?package(crystalspace-data):needs="X11" \\
#  section="Games/Arcade/CrystalSpace"\\
#  hints="Levels,$videotype"\\
#  title="Walktest $name $videotype" \\
#  command="/usr/bin/walktest -relight -video=$videotype $name"\\
#  icon="/usr/share/pixmaps/$name.xpm"
#FIN
#done

cat >> $CURDIR/debian/crystalspace-data.menu <<-FIN
?package(crystalspace-data):needs="X11" \\
  section="Games/Arcade/CrystalSpace"\\
  hints="Demos,$videotype"\\
  title="CSdemo $videotype" \\
  command="/usr/bin/csdemo -video=$videotype /usr/lib/crystalspace/data/demodata.zip"\\
  icon="/usr/share/pixmaps/demodata.xpm"
FIN

done
