head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	92.06.17.21.06.57;	author mer;	state Exp;
branches;
next	1.1;

1.1
date	90.08.10.14.34.15;	author cimarron;	state Exp;
branches;
next	;


desc
@version of genref to create only the portions of the manual
specified on the command line.  Generates an outputfile called
quickref.t
@


1.2
log
@move to groff (our savior)
@
text
@#!/bin/sh
#
# SET SITE-SPECIFIC VARIABLES HERE!
#

REFDIR=.

#
# The PRINTER variable needs to be set to the printer you wish to print to.
# For best results, it should be a POSTSCRIPT printer.
#

PRINTER=-Plw

#
# Check these.  IF YOU DO NOT HAVE GRN, YOU WILL NEED TO GET IT IN ORDER TO
# PRINT THIS DOCUMENT.
#

MACROS="-me"

GROFF="groff -spt $MACROS "

cd $REFDIR

# ----------------
# 	collect sources
# ----------------
SOURCES='pgtmacs '
x=1
numargs=$#
while test $x -le $numargs ; do
   SOURCES="$SOURCES $1"
   x=`expr $x + 1`
   shift
done

# ----------------
# 	generate tmp file from sources
# ----------------
for i in $SOURCES
do
	if (test ! -f $i)
	then
		co $i
	fi
done

# ----------------
# 	generate output and remove temp file
# ----------------
$GROFF $SOURCES > quickref.t
@


1.1
log
@Initial revision
@
text
@a20 2
SOELIM=soelim
TBL="dtbl"
d22 1
a22 6
#
# IF you have the GRN preprocessor for TROFF (which converts Gremlin output into
# TROFF line-drawing commands) you can print the reference manual as is.  If
# not, you will have to un-comment out the second definition for GRN.  You will
# be able to print the documentation, but without any illustrations.
#
a23 8
GRN="grn $PRINTER"

# GRN="$REFDIR/eatgrn"

PSROFF="psroff $PRINTER $MACROS "
DITROFF="ditroff $FLAGS $MACROS "
TROFF="troff $PRINTER $MACROS "

a40 1
touch /tmp/soe.$$
a46 1
	echo ".so $i" >> /tmp/soe.$$
d52 1
a52 2
$SOELIM /tmp/soe.$$ | $TBL | $GRN | $PSROFF -t > quickref.t
rm -f /tmp/soe.$$
@
