~ubuntu-branches/ubuntu/gutsy/gs-common/gutsy

« back to all changes in this revision

Viewing changes to debian/patches/02_better_dvipdf.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2004-10-09 13:36:43 UTC
  • Revision ID: james.westby@ubuntu.com-20041009133643-rsidg7o5i5mpk328
Tags: 0.3.6ubuntu1
Depend on gs-esp | gs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 03_better_dvipdf.dpatch by Masayuki Hatta <mhatta@debian.org>
 
3
##
 
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)
 
6
 
 
7
if [ $# -ne 1 ]; then
 
8
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
9
    exit 1
 
10
fi
 
11
case "$1" in
 
12
        -patch) patch -f --no-backup-if-mismatch --dry-run -p1 < $0 && patch -f --no-backup-if-mismatch -p1 < $0
 
13
;;
 
14
        -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
 
15
        *)
 
16
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
17
                exit 1;;
 
18
esac
 
19
 
 
20
exit 0
 
21
 
 
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
 
25
@@ -37,4 +37,4 @@
 
26
 
 
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 -
 
31