From: Alexandru Avadanii Date: Thu, 2 Nov 2017 21:57:18 +0000 (+0100) Subject: Makefile: patches-export: Remove existing patches X-Git-Tag: opnfv-5.1.RC1~24 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=c8b6bc16ff2aeeccd8e4a07a9e1cb8a475fd4748;p=armband.git Makefile: patches-export: Remove existing patches In case patch filenames changed, clear the old patches from the destination directory prior to exporting new patches. Change-Id: I65e56ae042dca1c769a0f68a449b3b0e7d7d25dc Signed-off-by: Alexandru Avadanii (cherry picked from commit 3f5c1defe0ce6fa69042f57db6ca9116f7be048b) --- diff --git a/Makefile b/Makefile index e7cd2c6d..68a85bbe 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,7 @@ submodules-clean: .submodules-init patches-export: .submodules-init @git submodule -q foreach ' \ SUB_DIR=${A_PATCH_DIR}/$$name; \ + rm -rf $$SUB_DIR/*; \ git tag | awk "!/root/ && /${A_OPNFV_TAG}-fuel/" | while read A_TAG; do \ SUB_FEATURE=`dirname $${A_TAG#${A_OPNFV_TAG}-fuel/}`; \ echo "`tput setaf 2`== exporting $$name ($$A_TAG)`tput sgr0`"; \