/usr/bin/rlatex is in sgml2x 1.0.0-11.4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
set -e
LATEXPRG=${LATEXPRG:-latex}
while true; do
RLSOTMP=$(mktemp /tmp/RLSO.XXXXXXXX)
RLOKTMP="xxx"
if ${LATEXPRG} $* | tee $RLSOTMP
then
RLOKTMP=$(mktemp /tmp/rlok.XXXXXXXX)
fi
if [ $RLOKTMP = "xxx" ]
then
echo >&2 "$(basename $0): Exiting in error"
exit 1
fi
if ! grep -E '^(LaTeX Warning: (Label\(s\) may|There were undefined references)|Package longtable Warning: Table widths have changed)' $RLSOTMP >/dev/null
then
rm -f $RLSOTMP
exit 0
fi
echo "Re-running LaTeX"
rm -f $RLSOTMP $RLOKTMP
done
|