#!/bin/sh

: ${RBLD:=$PWD}

$RBLD/bin/rblatexdiff --preamble $RBLD/sty/pscbpreamble.tex "$1" "$2" > changes.tex && \
TEXINPUTS=sty:$TEXINPUTS:. latex changes.tex && \
DVIPSHEADERS=sty:$DVIPSHEADERS:. dvips -Ppdf -o changes.ps changes.dvi && \
ps2pdf -sPAPERSIZE=a4 changes.ps && \
echo && echo "Take a look at changes.pdf"

