#! /bin/csh	-f

# Customize the tmac.anc file by expanding 'KHOROS_HOME' and
# putting the result in tmac.anc.


if (! $?KHOROS_HOME ) then
   echo ""
   echo "vinstall: Error KHOROS_HOME environment variable is not set"
   echo ""
   exit 0
endif

cd $KHOROS_HOME/man/utils/tmac
\rm -f $KHOROS_HOME/man/utils/tmac/tmac.anc
set cmd = "s|KHOROS_HOME|$KHOROS_HOME|"
sed $cmd < tmac.anc.tmpl >! $KHOROS_HOME/man/utils/tmac/tmac.anc

