[system] / trunk / webwork-modperl / bin / gif2png Repository:
ViewVC logotype

View of /trunk/webwork-modperl/bin/gif2png

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2487 - (download) (annotate)
Sun Jul 11 19:41:30 2004 UTC (8 years, 10 months ago) by gage
File size: 1458 byte(s)
Restoring gif2png default directory to one appropriate to unix installations
(as opposed to macs).  Sorry about that .

    1 #!/bin/sh
    2 ################################################################################
    3 # WeBWorK Online Homework Delivery System
    4 # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
    5 # $CVSHeader: webwork-modperl/bin/gif2png,v 1.2 2003/12/09 01:12:28 sh002i Exp $
    6 # 
    7 # This program is free software; you can redistribute it and/or modify it under
    8 # the terms of either: (a) the GNU General Public License as published by the
    9 # Free Software Foundation; either version 2, or (at your option) any later
   10 # version, or (b) the "Artistic License" which comes with this package.
   11 # 
   12 # This program is distributed in the hope that it will be useful, but WITHOUT
   13 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   14 # FOR A PARTICULAR PURPOSE.  See either the GNU General Public License or the
   15 # Artistic License for more details.
   16 ################################################################################
   17 
   18 # This script wraps system-dependant calls to several netpbm utilities.
   19 # In order to use this script, set the NETPBM variable below to the
   20 # directory which contains giftopnm, ppmtopgm, and pnmtops.
   21 
   22 NETPBM=/usr/local/bin
   23 
   24 # If you wish to set the paths to each utility separately, i.e. if they
   25 # are in different locations, do so below:
   26 
   27 GIFTOPNM=$NETPBM/giftopnm;
   28 PNMTOPNG=$NETPBM/pnmtopng;
   29 
   30 # There should be no need for customization beyond this point.
   31 
   32 umask 022
   33 cat $1 | $GIFTOPNM | $PNMTOPNG > $2

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9