#
# Create manual for the Mark Williams COHERENT Driver Kit.
# by fwb, 6/91
#
# copyright (c) 1991,93 by Mark Williams Company, Northbrook Ill.

INPUT=/v/doc/coherent
TROFF="troff -p -mcohtext -rX0 -n1 -rNS1 -rNI1 -Z $INPUT/fonts.r $INPUT/top.r"
OUTPUT=/tmp/doc/driver

rm pgn.r driver.index driver.contents *.x $OUTPUT/*

# Introduction
$TROFF intro.r \
	>  $OUTPUT/intro.out \
	2> driver.x

# Kernel internals
tail -1 driver.x >pgn.r
$TROFF pgn.r kernel.r \
	>  $OUTPUT/kernel.out \
	2>>driver.x

# Drivers in more detail
tail -1 driver.x >pgn.r
$TROFF pgn.r driver.r \
	>  $OUTPUT/driver.out \
	2>>driver.x

# Example of a block driver
tail -1 driver.x >pgn.r
$TROFF pgn.r block.r \
	>  $OUTPUT/block.out \
	2>>driver.x

# Example of a character driver
tail -1 driver.x >pgn.r
$TROFF pgn.r character.r \
	>  $OUTPUT/character.out \
	2>>driver.x

