#!/bin/sh

FILE=mesicni_hodiny

./$FILE.awk > $FILE.txt

mpost $FILE
awk '/ \/ptmr8z/{print " /ptmr8z /Times-Bold def"}!/ \/ptmr8z/{print;}' < $FILE.1 > $FILE.eps

./pstopng $FILE.eps
./pswrite.sh $FILE.eps
mv $FILE"_krivky.ps" $FILE.ps

cp $FILE.txt $FILE.ps $FILE.png ../../doc/
rm $FILE.log $FILE.1

