#!/bin/sh -e
# @(#) onedvi.sh 1.11@(#) 93/04/23 #

# First pass.

rm -f WhatFile.tex MODE.tex
touch WhatFile.tex MODE.tex

for file in *.TEX;
	do
		# If the file has a copy in SCCS, get the freshest one out.
		make -f /dev/null `cat $file`;
		conv `echo $file | sed -e 's/.TEX$//g'`;
	done;

latex root

# Second pass---get title pages and index right this time.

for file in *.TEX;
	do
		conv `echo $file | sed -e 's/.TEX$//g'`;
	done;

latex root

mv root.dvi spec.dvi
mv root.log spec.log

rm ???.tex
