also define proper version when using git-svn

This commit is contained in:
Ludwig Nussel 2008-07-16 07:14:55 +00:00
parent d84d418086
commit 5208bf8273

View file

@ -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