1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1255 Win:Fixed 7z detection when it is not in path but under tools/bin

Lin:Switch from 7zr to 7za due to wider availability
This commit is contained in:
Alessio Morale 2014-04-08 14:11:17 +02:00
parent 01ec5bcc31
commit 10a0f69c82

View File

@ -153,9 +153,13 @@ JAR := jar
CD := cd
GREP := grep
ifneq ($(UNAME), Windows)
SEVENZIP := 7zr
SEVENZIP := 7za
else
SEVENZIP := 7za.exe
ifneq ($(shell $(SEVENZIP) --version >/dev/null 2>&1 && $(ECHO) "found"), found)
# no $(SEVENZIP) found in path. hope is in bin...
SEVENZIP = $(TOOLS_DIR)/bin/7za.exe
endif
endif
# Echo in recipes is a bit tricky in a Windows Git Bash window in some cases.