#!/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 $@