source: main/trunk/binaries/mac/intel/ghostscript/bin/pdf2dsc@ 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: 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.