From: Stefan Date: Wed, 22 Nov 2017 00:02:02 +0000 (+0100) Subject: Subversion fallback X-Git-Tag: V2.17~66^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44b13c1ca08c31289c2509d6626aa8bc56b601b6;p=cc65 Subversion fallback If you use don't use Git to access the repository, you will still get a revision number. --- diff --git a/src/Makefile b/src/Makefile index 8b41ceb9c..b70a3ffab 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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)