1#!/bin/sh 2# $Id: ps2ps2,v 1.1 2005/07/20 06:00:54 igor Exp $ 3# "Distill" PostScript. 4 5# This definition is changed on install to match the 6# executable name set in the makefile 7GS_EXECUTABLE=gs 8 9OPTIONS="-dSAFER" 10while true 11do 12 case "$1" in 13 -*) OPTIONS="$OPTIONS $1" ;; 14 *) break ;; 15 esac 16 shift 17done 18 19if [ $# -ne 2 ]; then 20 echo "Usage: `basename $0` [options] input.ps output.ps" 1>&2 21 echo " e.g. `basename $0` -sPAPERSIZE=a4 input.ps output.ps" 1>&2 22 exit 1 23fi 24 25exec $GS_EXECUTABLE -q -sDEVICE=ps2write "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1" 26