2
## 03_better_dvipdf.dpatch by Masayuki Hatta <mhatta@debian.org>
4
## All lines beginning with \`## DP:' are a description of the patch.
5
## DP: Give -Ppdf to dvips in dvipdf for better output (See Bug#144103)
8
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12
-patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0
14
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
16
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
22
diff -urN gs-common-0.3.3.2.orig/scripts/dvipdf gs-common-0.3.3.2/scripts/dvipdf
23
--- gs-common-0.3.3.2.orig/scripts/dvipdf 2004-03-24 13:05:25.000000000 +0900
24
+++ gs-common-0.3.3.2/scripts/dvipdf 2004-03-24 13:06:53.000000000 +0900
27
# We have to include the options twice because -I only takes effect if it
28
# appears before other options.
29
-exec dvips -q -f "$infile" | gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -
30
+exec dvips -Ppdf -q -f "$infile" | gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite -