home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / VOGLE.ZIP / VOGLE / DRIVERS / P6TO < prev    next >
Text File  |  2000-02-11  |  323b  |  18 lines

  1. #!/bin/sh
  2. PATH=$PATH:/usr/local/netpbm
  3. export PATH
  4. # this is the p6to script used by the VOGLE p6 driver
  5. case "$P6TO" in
  6.     GIF) ppmtogif > $$.gif # gif file
  7.     ;;
  8.     TIFF) pnmtotiff >$$.tiff # tiff file
  9.     ;;
  10.     XBM) 'ppmtopgm|pgmtopbm|pbmtoxbm' > $$.xbm # greyscale X11 bitmap
  11.     ;;
  12. *)
  13. cat > $$_p6.ppm
  14. ;;
  15. esac
  16. exit
  17.  
  18.