if [ $# -lt 1 ]; then
  echo "usage: go scrfile [var=value]"
  exit 1
fi
if [ -f $1 ]; then
  echo
else
  echo "cannot find $1"
  exit 1
fi

TDHKIT_CONFIG=
export TDHKIT_CONFIG

X=`echo $1 | sed "s/^.*\.//" `
echo "$X"
if [ "$X" != "1" ]; then
  echo "'go' should only be used for .1 files"
  exit
fi
  
/home/scg/tdhkit/bin/sinterp $* > ../man1/$1
unroff -man ../man1/$1
mv *.html ../../doc
