aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-16 07:14:55 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-07-16 07:14:55 +0000
commiteeeb640a6dca0fe11e1fbcd3e689979de2d9792f (patch)
treee01bdd345783b8589f540902ab4c06d3ab745f39
parentb228d421e120787d8242d44cef9fd7aecefd105f (diff)
downloadioquake3-aero-eeeb640a6dca0fe11e1fbcd3e689979de2d9792f.tar.gz
ioquake3-aero-eeeb640a6dca0fe11e1fbcd3e689979de2d9792f.zip
also define proper version when using git-svn
git-svn-id: svn://svn.icculus.org/quake3/trunk@1425 edf5b092-35ff-0310-97b2-ce42778d08ea
-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