#!/bin/sh
BASE=demo
rm ${BASE}.pdf
xelatex -no-pdf --interaction=nonstopmode ${BASE}
bibtex ${BASE}
xelatex --interaction=nonstopmode ${BASE}
start "" "${BASE}.pdf"