source: other-projects/trunk/mac-binaries/intel/ghostscript/bin/ps2ps2@ 17625

Last change on this file since 17625 was 17625, checked in by max, 15 years ago

Adding GhostScript 8.63 for Intel Mac and changing the location of ImageMagick 6.4.4 for Intel Mac that can process JPEG2000 files by default.

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.