lilypond-1.3.140
[lilypond.git] / bin / ps-to-gifs.sh
blobc276406a2bf6b0f5696b990afbab72419031748b
1 #!/bin/bash
3 usage()
5 echo 'ps-to-gifs.sh FILE.ps'
6 exit 2;
9 case $# in
11 FILE=`basename $1 .ps`
14 usage
16 esac
18 # generate the pixmap at twice the size, then rescale (for antialiasing)
19 cat $1 | gs -q -sDEVICE=ppmraw \
20 -sOutputFile="|pnmscale 0.3333|ppmtogif > $FILE-page%d.gif" \
21 -r200 -dNOPAUSE - -c quit