1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-08 15:29:37 +00:00

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)