home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / quickref < prev    next >
Encoding:
Text File  |  1992-08-27  |  795 b   |  53 lines

  1. #!/bin/sh
  2. #
  3. # SET SITE-SPECIFIC VARIABLES HERE!
  4. #
  5.  
  6. REFDIR=.
  7.  
  8. #
  9. # The PRINTER variable needs to be set to the printer you wish to print to.
  10. # For best results, it should be a POSTSCRIPT printer.
  11. #
  12.  
  13. PRINTER=-Plw
  14.  
  15. #
  16. # Check these.  IF YOU DO NOT HAVE GRN, YOU WILL NEED TO GET IT IN ORDER TO
  17. # PRINT THIS DOCUMENT.
  18. #
  19.  
  20. MACROS="-me"
  21.  
  22. GROFF="groff -spt $MACROS "
  23.  
  24. cd $REFDIR
  25.  
  26. # ----------------
  27. #     collect sources
  28. # ----------------
  29. SOURCES='pgtmacs '
  30. x=1
  31. numargs=$#
  32. while test $x -le $numargs ; do
  33.    SOURCES="$SOURCES $1"
  34.    x=`expr $x + 1`
  35.    shift
  36. done
  37.  
  38. # ----------------
  39. #     generate tmp file from sources
  40. # ----------------
  41. for i in $SOURCES
  42. do
  43.     if (test ! -f $i)
  44.     then
  45.         co $i
  46.     fi
  47. done
  48.  
  49. # ----------------
  50. #     generate output and remove temp file
  51. # ----------------
  52. $GROFF $SOURCES > quickref.t
  53.