From 09bea83f83129e0de809147858ac76e5bc46d872 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sun, 17 Jul 2016 12:44:48 +1000 Subject: [PATCH] patch.mk: portability fix for gsed --- patch.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patch.mk b/patch.mk index 508de824..a97803b8 100644 --- a/patch.mk +++ b/patch.mk @@ -34,8 +34,8 @@ endef define IMPORT_PATCH cd '$(call GIT_DIR,$(1))' \ && cat '$(2)' \ - | sed '/^From/,$$ !d' \ - | sed s/'^From: MXE'/"From: fix@me"/'g;' \ + | $(SED) '/^From/,$$ !d' \ + | $(SED) s/'^From: MXE'/"From: fix@me"/'g;' \ | $(call GIT_CMD,$(1)) am --keep-cr ; endef @@ -55,8 +55,8 @@ define EXPORT_PATCH --text \ -M9 \ dist..HEAD \ - | sed 's/^From [0-9a-f]\{40\} /From 0000000000000000000000000000000000000000 /' \ - | sed 's/^index .......\.\......../index 1111111..2222222/' \ + | $(SED) 's/^From [0-9a-f]\{40\} /From 0000000000000000000000000000000000000000 /' \ + | $(SED) 's/^index .......\.\......../index 1111111..2222222/' \ ) > '$(PATCH_BY_NAME)' endef