#!/bin/sh

for FILE in sfericky_trojuhelnik nauticky_trojuhelnik1 nauticky_trojuhelnik2 ; do
  rm $FILE.mpx
  mpost $FILE
  mptopdf $FILE.1
  cp $FILE.1 $FILE-1.pdf ../..
done

