source: main/trunk/binaries/mac/intel/ghostscript/bin/ps2ps@ 27964

Last change on this file since 27964 was 27964, checked in by ak19, 11 years ago

Setting the mac ghostscript and imagemagick binaries to executable in SVN

  • Property svn:executable set to *
File size: 660 bytes
Line 
1#!/bin/sh
2# $Id: ps2ps 8773 2008-05-25 02:17:14Z alexcher $
3# "Distill" PostScript.
4
5# This definition is changed on install to match the
6# executable name set in the makefile
7GS_EXECUTABLE=gs
8gs="`dirname $0`/$GS_EXECUTABLE"
9if test ! -x "$gs"; then
10 gs="$GS_EXECUTABLE"
11fi
12GS_EXECUTABLE=gs
13
14OPTIONS="-dSAFER"
15while true
16do
17 case "$1" in
18 -?*) OPTIONS="$OPTIONS $1" ;;
19 *) break ;;
20 esac
21 shift
22done
23
24if [ $# -ne 2 ]; then
25 echo "Usage: `basename $0` [options] input.ps output.ps" 1>&2
26 echo " e.g. `basename $0` -sPAPERSIZE=a4 input.ps output.ps" 1>&2
27 exit 1
28fi
29
30exec "$GS_EXECUTABLE" -q -sDEVICE=pswrite "-sOutputFile=$2" -dNOPAUSE -dBATCH $OPTIONS "$1"
Note: See TracBrowser for help on using the repository browser.