summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2014-05-03 11:29:42 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-03 12:33:12 (GMT)
commit166aa788c57b5f842f89787b7d22dc47bc746602 (patch)
tree25f3a1511b301c66136b6eff599c8fe4e431a5ae /mk
parentfe8d93fb5856f5a60da3125b9a4c17c85d9b5edc (diff)
move calling update-patches into a separate mksh script update-patches2 handling quoting much better
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/buildhlp.mk11
1 files changed, 2 insertions, 9 deletions
diff --git a/mk/buildhlp.mk b/mk/buildhlp.mk
index 7421ff8..3262a25 100644
--- a/mk/buildhlp.mk
+++ b/mk/buildhlp.mk
@@ -105,14 +105,7 @@ endif
mv $$i.bak $$i; \
fi;\
done
- @toedit=$$(WRKDIST='${WRKDIST}' CURDIR=$$(pwd) \
- PATCH_LIST='patch-* *.patch' WRKDIR1='${WRKDIR}' \
- PATH='${HOST_PATH}' mksh ${TOPDIR}/scripts/update-patches); \
- if [[ -n $$toedit && $$toedit != FAIL ]]; then \
- echo -n 'edit patches: '; read i; \
- cd patches && $${VISUAL:-$${EDITOR:-vi}} $$toedit; \
- fi; \
- rm -rf ${WRKDIR}.orig; \
- [[ $$toedit != FAIL ]]
+ @WRKDIST='${WRKDIST}' WRKDIR1='${WRKDIR}' \
+ PATH='${HOST_PATH}' mksh ${TOPDIR}/scripts/update-patches2
.PHONY: update-patches host-update-patches