#!/bin/csh
#
#                                         ****  *****  *****  *   *  ****     *
#                                        *      *        *    *   *  *   *   **
#                                         ***   ***      *    *   *  ****   * *
#                                            *  *        *    *   *  *        *
#                                        ****   *****    *     ***   *        *
#
#     Purpose..... Define aliases to process testme.grf with groff
#
#     Remarks..... You may need to modify this script depending on what
#                  system you may have
#                  You need to make this script executable and source it
#
#     Usage....... alias pro    will create an alternative prologue (admin/su)
#                  alias grf    will produce the PS output
#                  alias view   will show you the result
#
#-+------- please edit these three lines

  setenv dir_try /Users/ms1/wrk/grf/tar                 # name of cur directory
  setenv dir_pro /usr/share/groff/1.18.1/font/devps     # home of prologue
  setenv dir_tmp /Users/ms1/tmp                         # dir of temporaries

#-+------- designate a file for the PS output

  setenv output $dir_tmp/testme.ps                      # output file

#-+------- concat mypost.lib & prologue.mod and place it where grops expects it
#          you may need to be admin or su to source this file & use this alias
#          you may need to change owner/group of the the file

  alias pro  'cat $dir_try/mypost.lib'                  # alternative prologue\
                 '$dir_try/prologue.mod > $dir_pro/prologue.mod'

#-+------- typing "grf" will produce the PS output

  alias grf  'groff -s -I $dir_try -P -Pprologue.mod'   # produce PS output\
             '$dir_try/testme.grf > $output'

#-+------- viewing the output file with the Mac's Preview

  alias view 'open -a Preview $output'                  # if you have Preview

#---------

  exit

#------------------------------------------------------------------------------
