#! /bin/sh

if [ $# -ne 2 -a $# -ne 3 ]; then
   exec 1>&2
   echo "syntax makeHelp <Generator Path> <module help file> [<language>]"
   echo "The language defaults to english"
   exit 1
fi    

language=${3-english}

cp $1/help.$language.html helpfile.data
echo "\n\n<h1>---------------</h1>" >> helpfile.data
cat $2 >> helpfile.data
wish $1/makeHelp.tcl helpfile.data generatedHelp.$language $1
rm helpfile.data
