星期二, 6月 09, 2020

Git FW version

https://atadiat.com/en/e-how-to-use-git-to-manage-firmware-versions/


1
2
3
4
GIT_HASH := $(shell git describe --match=NeVeRmAtCh --always --abbrev=7 --dirty)
GIT_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD)
GIT_TAG:= $(shell git describe --abbrev=0)
COMMIT_DATE := $(shell git show -s --format=%cd --date=format:'-%y-%m-%d' $(GIT_HASH))
.i.e: ‘fw-v.1.13.0-8c0ab15-master-10_1_2020.hex’. 

沒有留言: