You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#! /bin/sh
# pdf2dsc: generates an index of a PDF file.## Yves Arrouye <arrouye@debian.org>, 1996.# 2000-05-18 lpd <ghost@aladdin.com> added -dSAFER
# This definition is changed on install to match the# executable name set in the makefileGS_EXECUTABLE=gsgs="`dirname \"$0\"`/$GS_EXECUTABLE"if test ! -x "$gs"; then gs="$GS_EXECUTABLE"fiGS_EXECUTABLE="$gs"
me=`basename $0`
usage() { >&2 echo usage: $me "pdffile [ dscfile ]" exit 1}
if [ $# -gt 2 ]then usagefi
pdffile=$1dscfile=$2: ${dscfile:=`echo $pdffile | sed 's,\.[^/.]*,,'`.dsc}
exec "$GS_EXECUTABLE" -q -dNODISPLAY -P- -dSAFER -dDELAYSAFER\ -sPDFname="$pdffile" -sDSCname="$dscfile" pdf2dsc.ps -c quit
|