mirror of
https://github.com/cc65/cc65.git
synced 2025-01-09 11:30:29 +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:
parent
ab54f92024
commit
44b13c1ca0
@ -55,7 +55,7 @@ endif
|
|||||||
ifdef GIT_SHA
|
ifdef GIT_SHA
|
||||||
$(info GIT_SHA: $(GIT_SHA))
|
$(info GIT_SHA: $(GIT_SHA))
|
||||||
else
|
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)
|
ifneq ($(words $(GIT_SHA)),1)
|
||||||
GIT_SHA := N/A
|
GIT_SHA := N/A
|
||||||
$(info GIT_SHA: N/A)
|
$(info GIT_SHA: N/A)
|
||||||
|
Loading…
Reference in New Issue
Block a user