diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-11-02 22:57:18 +0100 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-11-02 23:01:54 +0100 |
commit | 3f5c1defe0ce6fa69042f57db6ca9116f7be048b (patch) | |
tree | 23bc4fe3920aed728baaf239c5b74c5232ebec84 /Makefile | |
parent | 9848bc05e89f2399f1958624055173142b6107d4 (diff) |
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 <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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`"; \ |