Skip to content
Snippets Groups Projects
Commit 9c74ea2c authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

contrib: fix build without flock

Change-Id: I274ed5b9b6f97b06e7a355b941f81f86c7816c24
parent 3466f1a2
Branches
No related tags found
No related merge requests found
...@@ -352,7 +352,7 @@ HOSTVARS := $(HOSTTOOLS) \ ...@@ -352,7 +352,7 @@ HOSTVARS := $(HOSTTOOLS) \
ifeq ($(DISABLE_CONTRIB_DOWNLOADS),TRUE) ifeq ($(DISABLE_CONTRIB_DOWNLOADS),TRUE)
download_git = $(error Trying to clone $(1) but DISABLE_CONTRIB_DOWNLOADS is TRUE, aborting.) download_git = $(error Trying to clone $(1) but DISABLE_CONTRIB_DOWNLOADS is TRUE, aborting.)
else else
download_git = flock "$@.lock" sh -c "\ download_git = $(FLOCK_PREFIX) sh -c "\
rm -Rf '$(@:.tar.xz=)' && \ rm -Rf '$(@:.tar.xz=)' && \
$(GIT) clone $(2:%=--branch '%') '$(1)' '$(@:.tar.xz=)' && \ $(GIT) clone $(2:%=--branch '%') '$(1)' '$(@:.tar.xz=)' && \
(cd '$(@:.tar.xz=)' && $(GIT) checkout $(3:%= '%')) && \ (cd '$(@:.tar.xz=)' && $(GIT) checkout $(3:%= '%')) && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment