DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T r

⟦43f64432f⟧ TextFile

    Length: 610 (0x262)
    Types: TextFile
    Names: »rlatex.sh«

Derivation

└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/mctex/doc/rlatex.sh« 

TextFile

#! /bin/sh
#
# rlatex.sh
#
# run latex, check for no-errors-but `Label(s) may have changed';
# if so, re-run latex (up to 3 times total)

case $# in
	1) ;;
	*) echo "usage: latex.sh file[.tex]" 1>&2; exit 1;;
esac
case "$1" in
	*.tex) file=`echo "$1" | sed 's/\.tex$//'`;;
	*) file="$1";;
esac

count=
while :; do
	count=${count}i		# this is cheaper than `expr $count + 1`
	case $count in
		i|ii|iii) ;;
		*) echo "Unstable labels?  I cannot go on." 1>&2; exit 10;;
	esac
	if latex "$file"; then
		if grep "Label(s) may have changed" <"$file".log >/dev/null
		then :
		else break
		fi
	else
		exit $?
	fi
done