#!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) # version = 1.00 of ps2pdf 2000 Oct 18 # origin 2000May22.18:46:09 # convert a PostScript file to a PDF file using ghostscript # To obtain ghostscript see: # http://www.lecb.ncifcrf.gov/~toms/postscript.html # Dr. Thomas D. Schneider # National Cancer Institute # Laboratory of Experimental and Computational Biology # Frederick, Maryland 21702-1201 # toms@ncifcrf.gov # permanent email: toms@alum.mit.edu # http://www.lecb.ncifcrf.gov/~toms/ if !($#argv == 1) then echo "usage: ps2pdf [file]" exit endif set name = `echo $1 | sed -e "s/.ps//"` echo converting $name.ps to $name.pdf echo "quit" | gs -q -r2000x2000 -sDEVICE=pdfwrite -sOutputFile=$name.pdf $name.ps