diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-16 07:14:55 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-07-16 07:14:55 +0000 |
commit | eeeb640a6dca0fe11e1fbcd3e689979de2d9792f (patch) | |
tree | e01bdd345783b8589f540902ab4c06d3ab745f39 /Makefile | |
parent | b228d421e120787d8242d44cef9fd7aecefd105f (diff) | |
download | ioquake3-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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |