#not needed under tcsh: #!/usr/bin/csh -f

#-------- groff a file with tmac.qo, produce file.ps and view on gv
#  usage: g2ps file
#........ if you use tmac.xx replace -mqo with -mxx

set fn = $1
echo " "
if( "$1" == "" ) then
  echo -n " --- g2ps file ---  Enter filename: "
  set fn = $<
endif

groff -tepC -mqo -Tps $fn > "$fn".ps

echo ""
echo -n "  ---> If you do NOT want to 'gv file.ps' now, enter n : "
set no = $<
if( "$no" == "n" ) then
   exit
endif

gv "$fn".ps

### replaces 
# alias g2ps 'groff -tepC -mqo -Tps  \!* > ./"\!^".ps &'
