aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1c77256..a2c5f5f 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