From 0bb1dee8453d8d723263fe63c38781faf6cb2bc6 Mon Sep 17 00:00:00 2001 From: Thorsten Glaser Date: Sat, 3 May 2014 11:31:56 +0000 Subject: proper quoting in GNUmakefile as well Signed-off-by: Thorsten Glaser --- mk/buildhlp.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mk/buildhlp.mk') diff --git a/mk/buildhlp.mk b/mk/buildhlp.mk index 3262a25cb..bf3418b7c 100644 --- a/mk/buildhlp.mk +++ b/mk/buildhlp.mk @@ -1,6 +1,9 @@ # This file is part of the OpenADK project. OpenADK is copyrighted # material, please see the LICENCE file in the top-level directory. +shellescape='$(subst ','\'',$(1))' +shellexport=$(1)=$(call shellescape,${$(1)}) + ifneq ($(strip ${PKG_SITES}),) ifeq ($(strip ${DISTFILES}),) DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz @@ -105,7 +108,9 @@ endif mv $$i.bak $$i; \ fi;\ done - @WRKDIST='${WRKDIST}' WRKDIR1='${WRKDIR}' \ - PATH='${HOST_PATH}' mksh ${TOPDIR}/scripts/update-patches2 + @WRKDIST=$(call shellescape,${WRKDIST}) \ + WRKDIR1=$(call shellescape,${WRKDIR}) \ + PATH=$(call shellescape,${HOST_PATH}) \ + mksh ${TOPDIR}/scripts/update-patches2 .PHONY: update-patches host-update-patches -- cgit v1.2.3