[system] / trunk / webwork / system / scripts / gif2eps Repository:
ViewVC logotype

Annotation of /trunk/webwork/system/scripts/gif2eps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 582 - (view) (download)

1 : sam 2 #!/bin/sh
2 :    
3 : sh002i 183 # This script wraps system-dependant calls to several netpbm utilities.
4 :     # In order to use this script, set the NETPBM variable below to the
5 :     # directory which contains giftopnm, ppmtopgm, and pnmtops.
6 : sam 2
7 : apizer 530 NETPBM=/usr/local/bin
8 : sam 2
9 : sh002i 183 # If you wish to set the paths to each utility separately, i.e. if they
10 : apizer 258 # are in different locations, do so below:
11 : sam 2
12 : sh002i 183 GIFTOPNM=$NETPBM/giftopnm;
13 :     PPMTOPGM=$NETPBM/ppmtopgm;
14 :     PNMTOPS=$NETPBM/pnmtops;
15 : sam 2
16 : sh002i 183 # There should be no need for customization beyond this point.
17 : sam 2
18 : sh002i 183 umask 022
19 : apizer 563 cat $1 | $GIFTOPNM | $PPMTOPGM | $PNMTOPS -noturn -nosetpage 2>/dev/null > $2
20 : sam 2
21 : apizer 582 # Current versions of pnmtops require the switch -nosetpage but some
22 :     # earlier versions do not accept this switch. If it causes problems
23 :     # edit it out.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9