diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-08-22 18:24:27 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2017-08-22 19:50:45 +0200 |
commit | d9ec017a2123cfb564d97b453ecf1b0de00b5d63 (patch) | |
tree | 3b950536f0cc6ac07536d0466935ccc65863611f /testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch | |
parent | 8a7e358d4760aa8de74ea323f5df954f19a70fba (diff) | |
download | aports-d9ec017a2123cfb564d97b453ecf1b0de00b5d63.tar.bz2 aports-d9ec017a2123cfb564d97b453ecf1b0de00b5d63.tar.xz |
testing/mblaze: backport fix for compatibility with busybox sed
Diffstat (limited to 'testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch')
-rw-r--r-- | testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch b/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch new file mode 100644 index 0000000000..b0948c81f1 --- /dev/null +++ b/testing/mblaze/0002-mquote-make-sed-expression-to-strip-signature-work-w.patch @@ -0,0 +1,26 @@ +From dfe09a7c5e3a2273f963d53432ef1686b34547db Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net> +Date: Mon, 21 Aug 2017 21:34:14 +0200 +Subject: [PATCH 2/2] mquote: make sed expression to strip signature work with + busybox sed + +Closes: #74 [via git-merge-pr] +--- + mquote | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/mquote b/mquote +index a64000d..fa8e4a4 100755 +--- a/mquote ++++ b/mquote +@@ -7,6 +7,6 @@ + + printf '%s wrote:\n' "$from" + mshow -R "$1" | +- sed -n '/^-- $/!p;//q' | # strip signature ++ sed -n '/^-- $/,$!p' | # strip signature + sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' | # strip empty lines + sed 's/^/> /' # prefix with > +-- +2.14.1 + |