#!/bin/bash

# this is to work around makefile error exits..

cat $1.tex | grep '\\bibliography{' && bibtex $1 && latex $1.tex
echo

