wscript: fix git version definition
This commit is contained in:
parent
bbde1394e1
commit
08dd632d87
1 changed files with 4 additions and 4 deletions
2
wscript
2
wscript
|
@ -127,7 +127,7 @@ def configure(conf):
|
||||||
else:
|
else:
|
||||||
conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX
|
conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX
|
||||||
|
|
||||||
conf.env.append_unique('DEFINES', 'XASH_BUILD_COMMIT="' + conf.env.GIT_VERSION if conf.env.GITVERSION else 'notset' + '"')
|
conf.env.append_unique('DEFINES', 'XASH_BUILD_COMMIT="{0}"'.format(conf.env.GIT_VERSION if conf.env.GITVERSION else 'notset'))
|
||||||
|
|
||||||
for i in SUBDIRS:
|
for i in SUBDIRS:
|
||||||
conf.setenv(i, conf.env) # derive new env from global one
|
conf.setenv(i, conf.env) # derive new env from global one
|
||||||
|
|
Loading…
Add table
Reference in a new issue