mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
also define proper version when using git-svn
This commit is contained in:
parent
d84d418086
commit
5208bf8273
1 changed files with 7 additions and 0 deletions
7
Makefile
7
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue