summaryrefslogtreecommitdiff
path: root/graphics/asymptote/patches/dvipdf
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-21 03:01:16 +0000
committerNorbert Preining <norbert@preining.info>2022-01-21 03:01:16 +0000
commit5d5f239204f5c0d1f7573c9ebc64b5ad1ae75b49 (patch)
treedd2a2d9a64fd0be0785bc558a4872a3c8185af23 /graphics/asymptote/patches/dvipdf
parent217d27e597baa589f8e115e1b44eef51c7bb5dd0 (diff)
CTAN sync 202201210301
Diffstat (limited to 'graphics/asymptote/patches/dvipdf')
-rwxr-xr-xgraphics/asymptote/patches/dvipdf8
1 files changed, 3 insertions, 5 deletions
diff --git a/graphics/asymptote/patches/dvipdf b/graphics/asymptote/patches/dvipdf
index 36dbe4206b..92a9d896fa 100755
--- a/graphics/asymptote/patches/dvipdf
+++ b/graphics/asymptote/patches/dvipdf
@@ -1,5 +1,4 @@
#!/bin/sh
-# $Id$
# Convert DVI to PDF.
#
# Please contact Andrew Ford <A.Ford@ford-mason.co.uk> with any questions
@@ -12,7 +11,7 @@
GS_EXECUTABLE=gs
-OPTIONS="-DSAFER -P"
+OPTIONS=""
DVIPSOPTIONS=""
while true
do
@@ -31,7 +30,7 @@ do
done
if [ $# -lt 1 -o $# -gt 2 ]; then
- echo "Usage: `basename $0` [options...] input.dvi [output.pdf]" 1>&2
+ echo "Usage: `basename \"$0\"` [options...] input.dvi [output.pdf]" 1>&2
exit 1
fi
@@ -50,5 +49,4 @@ fi
# We have to include the options twice because -I only takes effect if it
# appears before other options.
-exec dvips $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
-
+exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -