File: rlatex

package info (click to toggle)
tcng 10b-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,636 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (26 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (5)
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
#!/bin/sh
#
# Written 1992-2001 by Werner Almesberger
#
# See file COPYING.GPL for details
#
while true; do
    pid=$$
    export pid
    rm -f /tmp/rlok$pid
    (
        if latex $*; then
	    touch /tmp/rlok$pid
	fi
    ) | tee /tmp/rlso$pid
    if [ ! -f /tmp/rlok$pid ]; then
	rm -f /tmp/rlso$pid
	exit 1
    fi
    if grep '^LaTeX Warning: Label(s) may' /tmp/rlso$pid >/dev/null; then :
    else
	rm -f /tmp/rlso$pid
	exit 0
    fi
    echo "Re-running LaTeX"
done