Generate revision.hpp in src/.
This commit is contained in:
parent
42ffc83ca6
commit
a30935772a
2 changed files with 2 additions and 2 deletions
|
@ -253,7 +253,7 @@ else:
|
|||
have_server_prereqs = True
|
||||
have_test_prereqs = True
|
||||
|
||||
env.Append(CPPPATH = ["#/", "."])
|
||||
env.Append(CPPPATH = ["#/", "#/src"])
|
||||
|
||||
|
||||
have_msgfmt = env["MSGFMT"]
|
||||
|
|
|
@ -380,7 +380,7 @@ test = test_env.WesnothProgram("test", test_sources + [libwesnoth_extras, libwe
|
|||
|
||||
if env["svnrev"] != "" and env["svnrev"] != "exported":
|
||||
revision_define = "#define REVISION \"%s\"\n" % env["svnrev"]
|
||||
env.Command("revision.hpp", Value(env["svnrev"]), Action(
|
||||
env.Command("#/src/revision.hpp", Value(env["svnrev"]), Action(
|
||||
lambda target, source, env: open(str(target[0]), "w").write(revision_define),
|
||||
"Generating revision.hpp..."
|
||||
))
|
||||
|
|
Loading…
Add table
Reference in a new issue