Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ ! -f "$1" ] ; then
- echo "Input file $1 doesn't exist"
- exit 1
- fi
- TITLE=${1%%.*}
- #echo $TITLE
- mogrify -format eps $1 && epstopdf $TITLE.eps
- echo Conversion of $TITLE done!
- if [ -f $TITLE.eps ] ; then
- rm -v $TITLE.eps
- fi
- exit 0
Add Comment
Please, Sign In to add comment