exportMeta.sh 503 Bytes
Newer Older
antoine's avatar
antoine committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20



for (( ; ;  )); 
do
  mkdir -p svg eps
  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
  
  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 ..
  sleep 3
done