Subversion fallback

If you use don't use Git to access the repository, you will still get a revision number.
This commit is contained in:
Stefan
2017-11-22 01:02:02 +01:00
committed by GitHub
parent ab54f92024
commit 44b13c1ca0

View File

@@ -55,7 +55,7 @@ endif
ifdef GIT_SHA
$(info GIT_SHA: $(GIT_SHA))
else
GIT_SHA := $(shell git rev-parse --short HEAD 2>$(NULLDEV))
GIT_SHA := $(shell git rev-parse --short HEAD 2>$(NULLDEV) || svnversion -n)
ifneq ($(words $(GIT_SHA)),1)
GIT_SHA := N/A
$(info GIT_SHA: N/A)