summaryrefslogtreecommitdiffstats
path: root/patch.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2016-06-12 13:02:45 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-06-13 12:43:37 (GMT)
commit1f60ecc3737235cab776120b1876d2a8fa912edc (patch)
treea2898ec57ca6872e13fe57ddd03da25565c53539 /patch.mk
parent39f1107dbdc5da2f411521af7757c0b17590a296 (diff)
downloadmxe-1f60ecc3737235cab776120b1876d2a8fa912edc.zip
mxe-1f60ecc3737235cab776120b1876d2a8fa912edc.tar.gz
mxe-1f60ecc3737235cab776120b1876d2a8fa912edc.tar.bz2
patch-tool-mxe: rename existing .git directories
winpcap has directory wpcap/libpcap/.git in its source tree. Git considers wpcap/libpcap to be a submodule, which is unwanted.
Diffstat (limited to 'patch.mk')
-rw-r--r--patch.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/patch.mk b/patch.mk
index c67e7b3..508de82 100644
--- a/patch.mk
+++ b/patch.mk
@@ -22,6 +22,8 @@ define INIT_GIT
# if PKG_SUBDIR is ".", the following will move gits/tmp/pkg
mv '$(abspath $(GITS_DIR)/tmp/$(1)/$($(1)_SUBDIR))' '$(call GIT_DIR,$(1))'
rm -rf '$(GITS_DIR)/tmp'
+ # rename existing .git directories if any
+ find '$(call GIT_DIR,$(1))' -name .git -prune -exec sh -c 'mv "$$0" "$$0"_' {} \;
# initialize git
$(call GIT_CMD,$(1)) init
$(call GIT_CMD,$(1)) add -A