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

View of /trunk/webwork/system/scripts/gif2eps

Parent Directory Parent Directory | Revision Log Revision Log


Revision 183 - (download) (annotate)
Fri Aug 31 17:16:24 2001 UTC (11 years, 8 months ago) by sh002i
File size: 783 byte(s)
Cleaned these scripts up a little. Instead of setting the PATH, it just
uses the directory specified to call each utility with its full path. Also
added some documentation and got rid of some cruft (which, of course, one
can still pull out of CVS if needed). Incidentally, all the utilities used
in these two scripts are from the netpbm package.

    1 #!/bin/sh
    2 
    3 # 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 
    7 NETPBM=/usr/X11/bin
    8 
    9 # If you wish to set the paths to each utility separately, i.e. if they
   10 are in different locations, do so below:
   11 
   12 GIFTOPNM=$NETPBM/giftopnm;
   13 PPMTOPGM=$NETPBM/ppmtopgm;
   14 PNMTOPS=$NETPBM/pnmtops;
   15 
   16 # There should be no need for customization beyond this point.
   17 
   18 umask 022
   19 cat $1 | $GIFTOPNM | $PPMTOPGM | $PNMTOPS -noturn 2>/dev/null > $2
   20 
   21 # CODER NOTE:
   22 # We used to use `pnmdepth 1' instead of ppmtopgm as it creates a
   23 # monochrome image (1 bit) rather than a greyscale image (8 bits).
   24 # However, this was causing improper display of some sort in PDFs.

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9