#! /bin/tcsh -f

# % cd ../demo
# % ../scripts/make_index.csh

foreach dir ( rubydcloriginal gokuraku rakuraku grph1 grph2 )
  echo Making index.htm in $dir
  cd $dir
  ruby ../../scripts/make_index.rb
  cd ..
end

foreach dir ( math1 math2 )
  echo Making index.htm in $dir
  cd $dir
  ruby ../../scripts/make_text_index.rb
  cd ..
end

setenv LANG C
unsetenv LC_ALL

cat > index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>RubyDCL demo programs</title>
</head>

<body>
<h1>RubyDCL demo programs</h1>

<p>RubyDCL version: `cat RUBYDCLVERSION`

<p>Demo programs are taken from the "demo" subdirectory in the
   RubyDCL distribution (ruby-dcl-*.*.*/demo).

<h2>
<ul>
    <li> <a href="gokuraku/index.htm">GOKURAKU</a> (image gallery and index)
    <li> <a href="rakuraku/index.htm">RAKURAKU</a> (image gallery and index)
    <li> <a href="math1/index.htm">MATH1</a>
    <li> <a href="math2/index.htm">MATH2</a>
    <li> <a href="grph1/index.htm">GRPH1</a> (image gallery and index)
    <li> <a href="grph2/index.htm">GRPH2</a> (image gallery and index)
</ul>
</h2>


<hr>
Last modified: `date`
</body> </html>
EOF
