[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [patch 1/3] Make quilt mawk and original-awk compatible
From: |
Wolfram Sang |
Subject: |
[Quilt-dev] [patch 1/3] Make quilt mawk and original-awk compatible |
Date: |
Sat, 11 Oct 2008 15:47:21 +0200 |
User-agent: |
quilt/0.47-1 |
The quilt test-suite fails when using mawk or original-awk instead of gawk.
After applying this patch to mail.in, all tests run fine. It just drops a check
for a word boundary which is a gawk-extension. I think it is safe to apply it
as there is very similar code a few lines later which does neither use
word-boundary checks. It has been applied in Debian for a year now and no
side-effects have been reported.
Signed-off-by: Wolfram Sang <address@hidden>
---
quilt/mail.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: quilt/quilt/mail.in
===================================================================
--- quilt.orig/quilt/mail.in
+++ quilt/quilt/mail.in
@@ -308,9 +308,9 @@ then
if [ -z "$subject" ]
then
local desc=$(awk '
- /^EDESC\>/ { desc = 0 }
+ /^EDESC/ { desc = 0 }
desc { print }
- /^DESC\>/ { desc = 1 }
+ /^DESC/ { desc = 1 }
' $tmpdir/header)
if [ -n "$desc" ]
then