:
#!/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 don't have something listed here YOU WILL NEED TO
# GET IT IN ORDER TO PRINT THIS DOCUMENT.
#

MACROS="-me"
SOELIM=soelim
GROFF="groff -spt $MACROS "
TBL="tbl"

cd $REFDIR

SOURCES="
	pgtmacs \
	introduction \
	unix/information  \
		unix/createdb \
		unix/createuser \
		unix/destroydb \
		unix/destroyuser \
		unix/initdb \
		unix/ipcclean \
		unix/monitor \
		unix/pagedoc \
		unix/postgres \
		unix/postmaster \
		unix/shmemdoc \
	information/built-in \
	information/postquel \
		postquel/abort \
		postquel/addattr \
		postquel/append \
		postquel/attachas \
		postquel/begin \
		postquel/close \
		postquel/cluster \
		postquel/copy \
		postquel/create \
		postquel/createdb \
		postquel/createversion \
		postquel/defineaggregate \
		postquel/defineFunction \
		postquel/defineindex \
		postquel/defineoperator \
		postquel/definerule \
		postquel/definetype \
		postquel/defineview \
		postquel/delete \
		postquel/destroy \
		postquel/destroydb \
		postquel/end \
		postquel/fetch \
		postquel/listen \
		postquel/load \
		postquel/merge \
		postquel/move \
		postquel/notify \
		postquel/purge \
		postquel/removeaggregate \
		postquel/removefunction \
		postquel/removeindex \
		postquel/removeoperator \
		postquel/removerule \
		postquel/removetype \
		postquel/rename \
		postquel/replace \
		postquel/retrieve \
		postquel/vacuum \
	libpq \
	fastpath \
	large_objects \
	files/information \
		files/bki \
		files/page \
		files/template \
	references \
	toc
"
 
for i in $SOURCES
do
	if (test ! -f $i)
	then
		co $i
	fi
done

$GROFF $SOURCES > ref.t
