diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-06-12 13:02:45 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-06-13 12:43:37 (GMT) |
commit | 1f60ecc3737235cab776120b1876d2a8fa912edc (patch) | |
tree | a2898ec57ca6872e13fe57ddd03da25565c53539 /patch.mk | |
parent | 39f1107dbdc5da2f411521af7757c0b17590a296 (diff) | |
download | mxe-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.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |