From eeeb640a6dca0fe11e1fbcd3e689979de2d9792f Mon Sep 17 00:00:00 2001 From: ludwig Date: Wed, 16 Jul 2008 07:14:55 +0000 Subject: also define proper version when using git-svn git-svn-id: svn://svn.icculus.org/quake3/trunk@1425 edf5b092-35ff-0310-97b2-ce42778d08ea --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3