#!/bin/sh # This script wraps system-dependant calls to several netpbm utilities. # In order to use this script, set the NETPBM variable below to the # directory which contains giftopnm, ppmtopgm, and pnmtops. NETPBM=/usr/local/bin # If you wish to set the paths to each utility separately, i.e. if they # are in different locations, do so below: GIFTOPNM=$NETPBM/giftopnm; PPMTOPGM=$NETPBM/ppmtopgm; PNMTOPS=$NETPBM/pnmtops; # There should be no need for customization beyond this point. umask 022 cat $1 | $GIFTOPNM | $PPMTOPGM | $PNMTOPS -noturn -nosetpage 2>/dev/null > $2 # Current versions of pnmtops require the switch -nosetpage but some # earlier versions do not accept this switch. If it causes problems # edit it out.