All pastes #139379 Raw Edit

Anonymous

public text v1 · immutable
#139379 ·published 2006-08-19 22:37 UTC
rendered paste body
#!/bin/bash

# This script generates ps and pdf files from
# the latex. If a bibliography exists it is
# automatically processed.

latex $1 || exit $?
latex $1 || exit $?

# This is simple and only expects to find
# 1 .bib file.
BIB=`find . -name '*.bib'`
if [ "$BIB" != "" ]
then
        bibtex $1 || exit $?
        latex $1 || exit $?
        latex $1 || exit $?
fi

dvips $@