summaryrefslogtreecommitdiffstats
path: root/patch.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-07-17 02:44:48 (GMT)
committerTony Theodore <tonyt@logyst.com>2016-07-17 02:44:48 (GMT)
commit09bea83f83129e0de809147858ac76e5bc46d872 (patch)
treefb3bf564b845f72b56c43ba03d4231ae7fd74f14 /patch.mk
parenta4a33f258102d28efa209dfc72bd06a7c5cc858a (diff)
downloadmxe-09bea83f83129e0de809147858ac76e5bc46d872.zip
mxe-09bea83f83129e0de809147858ac76e5bc46d872.tar.gz
mxe-09bea83f83129e0de809147858ac76e5bc46d872.tar.bz2
patch.mk: portability fix for gsed
Diffstat (limited to 'patch.mk')
-rw-r--r--patch.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/patch.mk b/patch.mk
index 508de82..a97803b 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