#!/bin/csh -fe
# @(#)(c)_ExNet_1988--91 updatedvi.sh 1.8@(#) 91/09/20 #
if( ! -e ./conv ) make conv
./conv $1
if( ! -w MODE.tex ) then
	rm -f MODE.tex
endif
if( ! -e MODE.tex ) then
	echo '%' > MODE.tex
endif
if( ! -w WhatFile.tex ) then
	rm -f WhatFile.tex
endif
if( ! -e WhatFile.tex ) then
	echo '%' > WhatFile.tex
endif
echo \\includeonly\{$1\}\\global\\SINGLEFILEtrue >WhatFile.tex
rm -f root.dvi root.idx root.log
latex root
echo '%' >WhatFile.tex
rm $1.tex
cp root.dvi $1.dvi
cp root.log $1.log
cp root.idx $1.idx
dvitool $1.dvi
