# Run
#
# Compile the release notes for the floppy-tape disk
#
TROFF="troff -p -rNS1 -rNI1 -rRN1"
INPUT=/v/doc/coherent
OUTPUT=/tmp/doc/rel.notes
LX=/v/doc/coherent/lx

# clean out $OUTPUT
rm $OUTPUT/*

# do the title page and table of contents
$TROFF $INPUT/fonts.r title.r 2>/dev/null > $OUTPUT/title.p
$TROFF $INPUT/fonts.r $INPUT/top.r copyright.r > $OUTPUT/copyright.p

# Do the introduction
$TROFF -mcohtext $INPUT/fonts.r $INPUT/top.r \
	intro.r \
	2>Run.x > $OUTPUT/intro.p
tail -1 Run.x > pgn.r

# Do the Lexicon entries
$TROFF -mcohlex $INPUT/fonts.r $INPUT/top.r pgn.r \
	$LX/backups $LX/ft $LX/ftbad $LX/tape $LX/tape.c \
	2>>Run.x > $OUTPUT/lexicon.p
