#! /bin/csh -f
set outf = CSURF_HELP.txt
if (-e $outf) then
  echo "mkhelp: ### outfile $outf exists (mv aside first)  ...quitting"
  exit
endif
set helpdir = $CSURF_DIR/lib/help/csurf
if (-e $helpdir) then
  cd $helpdir
else
  echo "can't find helpdir: $helpdir"
  exit
endif
echo "#############################################################" >> $outf
foreach helpfile ( \
    csurf \
    defnotes \
    makenewsubj \
    setupstruct \
    handnormalize \
    processvolume \
    editsegmentation \
    createsurface \
    fixtopology \
    makefinalsurface \
    processcreatefixfinal \
    compat \
    makerelaxationcuts \
    flattensurface \
    spheresurface \
    medit \
    register \
    surfer \
    makenewfunct \
    viewscandirs \
    mkscandirs \
    setupfunct \
    setuprawavg \
    setupfour \
    setuprand \
    setupsigavg \
    setupsurfavg \
    setupfield \
    setupimport \
    setuprender \
    batch \
    )

  cat $CSURF_DIR/lib/help/csurf/$helpfile >> $outf
  echo "#############################################################" >> $outf
end
