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
|
---|
11 | GS_EXECUTABLE=gs
|
---|
12 | gs="`dirname $0`/$GS_EXECUTABLE"
|
---|
13 | if test ! -x "$gs"; then
|
---|
14 | gs="$GS_EXECUTABLE"
|
---|
15 | fi
|
---|
16 | GS_EXECUTABLE=gs
|
---|
17 |
|
---|
18 | me=`basename $0`
|
---|
19 |
|
---|
20 | usage() {
|
---|
21 | >&2 echo usage: $me "pdffile [ dscfile ]"
|
---|
22 | exit 1
|
---|
23 | }
|
---|
24 |
|
---|
25 | if [ $# -gt 2 ]
|
---|
26 | then
|
---|
27 | usage
|
---|
28 | fi
|
---|
29 |
|
---|
30 | pdffile=$1
|
---|
31 | dscfile=$2
|
---|
32 | : ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
|
---|
33 |
|
---|
34 | exec "$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.