diff --git a/Makefile b/Makefile index 1c772563..a2c5f5f1 100644 --- a/Makefile +++ b/Makefile @@ -193,6 +193,13 @@ ifeq ($(wildcard .svn),.svn) VERSION:=$(VERSION)_SVN$(SVN_REV) USE_SVN=1 endif +else +ifeq ($(wildcard .git/svn/.metadata),.git/svn/.metadata) + SVN_REV=$(shell LANG=C git-svn info | awk '$$1 == "Revision:" {print $$2; exit 0}') + ifneq ($(SVN_REV),) + VERSION:=$(VERSION)_SVN$(SVN_REV) + endif +endif endif