2
## 15_psset_sed_fix.dpatch by Masayuki Hatta <mhatta@debian.org>
4
## All lines beginning with \`## DP:' are a description of the patch.
5
## DP: Fixes psset problem with newer sed.
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 a2ps-4.13b.orig/ChangeLog a2ps-4.13b/ChangeLog
23
--- a2ps-4.13b.orig/ChangeLog 2004-08-17 03:33:15.000000000 +0900
24
+++ a2ps-4.13b/ChangeLog 2004-08-17 03:33:25.000000000 +0900
26
+2004-07-11 Nix <nix@esperi.org.uk>
28
+ * contrib/psset.m4: Only escape leading spaces, not all leading
31
2000-02-24 Akim Demaille <akim@epita.fr>
34
diff -urN a2ps-4.13b.orig/contrib/psset.in a2ps-4.13b/contrib/psset.in
35
--- a2ps-4.13b.orig/contrib/psset.in 2004-08-17 03:33:15.000000000 +0900
36
+++ a2ps-4.13b/contrib/psset.in 2004-08-17 03:33:36.000000000 +0900
40
pspagedevice="% Pagedevice definitions:
43
% Push our own mark, since there can be several PS marks pushed depending
44
% where the failure really occured.
49
{ /psset_mark eq { exit } if } loop
50
-countdictstack exch sub dup 0 gt
51
+ countdictstack exch sub dup 0 gt
55
diff -urN a2ps-4.13b.orig/contrib/psset.m4 a2ps-4.13b/contrib/psset.m4
56
--- a2ps-4.13b.orig/contrib/psset.m4 2004-08-17 03:33:15.000000000 +0900
57
+++ a2ps-4.13b/contrib/psset.m4 2004-08-17 03:33:25.000000000 +0900
59
# spaces with a `\' too...
60
pspagedevicelen=`echo "$pspagedevice" | wc -l`
61
pspagedevice=`echo "$pspagedevice" | \
62
- sed -e "$pspagedevicelen!s/\$/\\\\\\/;s/^/\\\\\\/"`
63
+ sed -e "$pspagedevicelen!s/\$/\\\\\\/;s/^ /\\\\\\ /"`
66
0) # Insert last in the Setup, so that we win over other requests.