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

Last change on this file since 17625 was 17625, checked in by max, 16 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: 735 bytes
Line 
1#! /bin/sh
2# $Id: pdf2dsc 8107 2007-07-05 19:04:29Z till $
3
4# psf2dsc: generates an index of a PDF file.
5#
6# Yves Arrouye <[email protected]>, 1996.
7# 2000-05-18 lpd <[email protected]> added -dSAFER
8
9# This definition is changed on install to match the
10# executable name set in the makefile
11GS_EXECUTABLE=gs
12gs="`dirname $0`/$GS_EXECUTABLE"
13if test ! -x "$gs"; then
14 gs="$GS_EXECUTABLE"
15fi
16GS_EXECUTABLE=gs
17
18me=`basename $0`
19
20usage() {
21 >&2 echo usage: $me "pdffile [ dscfile ]"
22 exit 1
23}
24
25if [ $# -gt 2 ]
26then
27 usage
28fi
29
30pdffile=$1
31dscfile=$2
32: ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
33
34exec "$GS_EXECUTABLE" -q -dNODISPLAY -dSAFER -dDELAYSAFER\
35 -sPDFname="$pdffile" -sDSCname="$dscfile" pdf2dsc.ps -c quit
Note: See TracBrowser for help on using the repository browser.