Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. rm -f *.pdf
  4. rm -f *.png
  5.  
  6. COMMIT=$(git rev-parse HEAD)
  7.  
  8. for f in *.drawio
  9. do
  10. /Applications/draw.io.app/Contents/MacOS/draw.io --export --all-pages --output $f.pdf $f
  11. /Applications/draw.io.app/Contents/MacOS/draw.io --export --all-pages --output $f.png $f
  12.  
  13. cp $f.pdf history/$f.${COMMIT::8}.pdf
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement