exportMeta.sh 541 Bytes
Newer Older
antoine's avatar
antoine committed
1 2 3 4 5 6



for (( ; ;  )); 
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 15 16 17 18 19 20 21 22
  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
23
done