1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-1639 make non-git source: made paths relative to help windows

This commit is contained in:
James Duley 2014-12-01 14:23:13 +13:00
parent f9de8f3afe
commit 368c726769

View File

@ -905,15 +905,15 @@ build-info:
.PHONY: source
source:
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(BUILD_DIR)/source)"
@$(ECHO) " SOURCE FOR DISTRIBUTION $(call toprel, $(SOURCE_DIR))"
$(V1) $(MKDIR) -p "$(SOURCE_DIR)"
$(V1) $(VERSION_INFO) \
--jsonpath="$(SOURCE_DIR)"
$(eval SOURCE_NAME := "$(SOURCE_DIR)/OpenPilot-$(shell git describe).tar")
$(eval SOURCE_NAME := $(call toprel, "$(SOURCE_DIR)/OpenPilot-$(shell git describe).tar"))
$(V1) git archive --prefix="OpenPilot/" -o "$(SOURCE_NAME)" HEAD
$(V1) tar --append --file="$(SOURCE_NAME)" \
--transform='s,.*version-info.json,OpenPilot/version-info.json,' \
"$(SOURCE_DIR)/version-info.json"
$(call toprel, "$(SOURCE_DIR)/version-info.json")
$(V1) gzip -f "$(SOURCE_NAME)"