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

OP-1639 make non-git source: added git describe to archive name

This commit is contained in:
James Duley 2014-12-01 11:11:53 +13:00
parent 3c0a3ced92
commit f9de8f3afe

View File

@ -909,7 +909,7 @@ source:
$(V1) $(MKDIR) -p "$(SOURCE_DIR)"
$(V1) $(VERSION_INFO) \
--jsonpath="$(SOURCE_DIR)"
$(eval SOURCE_NAME := "$(SOURCE_DIR)/OpenPilot.tar")
$(eval SOURCE_NAME := "$(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,' \