exportMeta.sh 537 Bytes
Newer Older
antoine's avatar
antoine committed
1 2 3



4
for (( ; ;  ));
antoine's avatar
antoine committed
5 6
do
  mkdir -p svg eps
7

8 9 10
  rm -f svg/*.svg
  rm -f eps/*.eps

antoine's avatar
antoine committed
11 12 13 14
  echo 'prologues := 3; outputtemplate := "%c.eps";' > eps/metahoguet.eps.mp
  echo 'outputtemplate := "%c.svg";' > svg/metahoguet.svg.mp

  curl http://osp.constantvzw.org:9999/p/metahoguet/export/txt | tee -a eps/metahoguet.eps.mp >> svg/metahoguet.svg.mp
15

antoine's avatar
antoine committed
16 17 18 19 20 21
  cd svg
  mpost -interaction=batchmode -s 'outputformat="svg"' metahoguet.svg.mp
  cd ..
  cd eps
  mpost -interaction=batchmode -s 'outputformat="eps"' eps/metahoguet.eps.mp
  cd ..
22 23
  sleep 2
done