source: other-projects/trunk/winbin/bin/ghostscript/lib/ps2ps2@ 17223

Last change on this file since 17223 was 17223, checked in by max, 16 years ago

Add Ghostscript binaries and libraries for windows.

File size: 691 bytes
Line 
1#!/bin/sh
2# $Id: ps2ps2 8773 2008-05-25 02:17:14Z alexcher $
3# "Distill" PostScript with the Ghostscript 'ps2write' device
4# this generates a PDF-style stream with an attached
5# PostScript program to interpret it.
6
7# This definition is changed on install to match the
8# executable name set in the makefile
9GS_EXECUTABLE=gs
10
11OPTIONS="-dSAFER"
12while true
13do
14 case "$1" in
15 -?*) OPTIONS="$OPTIONS $1" ;;
16 *) break ;;
17 esac
18 shift
19done
20
21if [ $# -ne 2 ]; then
22 echo "Usage: `basename $0` [options] input.ps output.ps" 1>&2
23 echo " e.g. `basename $0` -sPAPERSIZE=a4 input.ps output.ps" 1>&2
24 exit 1
25fi
26
27exec $GS_EXECUTABLE -q -sDEVICE=ps2write "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
Note: See TracBrowser for help on using the repository browser.