Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_fixcpp/sys/src/cmd/gs/lib/ps2ps – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/sh
2
# $Id: ps2ps,v 1.7 2004/08/04 00:55:46 giles Exp $
3
# "Distill" PostScript.
4
 
5
# This definition is changed on install to match the
6
# executable name set in the makefile
7
GS_EXECUTABLE=gs
8
 
9
OPTIONS="-dSAFER"
10
while true
11
do
12
	case "$1" in
13
	-*) OPTIONS="$OPTIONS $1" ;;
14
	*)  break ;;
15
	esac
16
	shift
17
done
18
 
19
if [ $# -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
23
fi
24
 
25
exec $GS_EXECUTABLE -q -sDEVICE=pswrite "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"