Corrected recipe for making revision.hpp.
This commit is contained in:
parent
ca5539e5a5
commit
dd01cd139c
1 changed files with 3 additions and 3 deletions
|
@ -454,10 +454,10 @@ env.Program("test", test_sources,
|
|||
LIBPATH = [".", "/lib", "/usr/lib"])
|
||||
|
||||
# FIXME: Currently this will only work under Linux
|
||||
svnrev = commands.getoutput("svnversion -n . 2>/dev/null")
|
||||
env["svnrev"] = commands.getoutput("svnversion -n . 2>/dev/null")
|
||||
env.Depends('src/game_config.o', 'src/revision.hpp')
|
||||
r = env.Command("revision.h", [],
|
||||
'echo "#define REVISION \"%s\"" >src/revision.h' % svnrev)
|
||||
r = env.Command("src/revision.hpp", [],
|
||||
lambda target, source, env: open(str(target[0]), "w").write("#define REVISION \"%s\"\n" % env["svnrev"]))
|
||||
env.AlwaysBuild(r)
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue