#/bin/sh

export TEXINPUTS=:.:../pstricks/latex:../pstricks/generic:
export DVIPSHEADERS=:../pstricks/dvips/:

mkdir -p temp

#./tcgame_ "$1" > temp/tcgame.dot && \
#cd temp/ && \
#dot -Tps -o tcgame.ps tcgame.dot && \
#mv tcgame.ps ../tcgame.ps && \
#cd ../

./tcgame_ "$1" > temp/tcgame.tex && \
cd temp/ && \
latex tcgame.tex && \
dvips tcgame.dvi && \
mv tcgame.ps ../tcgame.ps && \
cd ../ 
 

# rm -rf temp


