#!/bin/sh

FILES=$@
if [ "$FILES" = "" ] ; then
  FILES="koule opozice vektory plosna_rychlost plosna_rychlost2 anomalie newton_raphson"
fi

TEX=csplain; export TEX

for FILE in $FILES ; do
  rm $FILE.mpx
  mpost $FILE
  mptopdf $FILE.1
  cp $FILE.1 $FILE-1.pdf ../../figs/
done

exit


