#!/bin/csh -f

source labels

./convertem

set image_dir = ${name}_small

set images = `/bin/ls -1 $image_dir/*.jpg $image_dir/*.JPG`

cat header | sed "s/TITLE/$title/g" > index.html

set n=1
foreach image ($images)
  echo "<img src='$image' alt='$name $n' ><br><br>" >> index.html
  @ n ++
end

echo ' ' >> index.html
cat trailer >> index.html
