diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-29 16:56:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-29 16:56:59 +0200 |
commit | 6959bd7cc0883ac1004bda047555341682b15b19 (patch) | |
tree | 447fc3deacfa22ff00627bd52350edac16bb44b2 | |
parent | d577b075a8f193a45ebbbd268582c4b60258c91e (diff) |
Set version.stub variable
-rw-r--r-- | build2/version/init.cxx | 2 | ||||
-rw-r--r-- | doc/manual.cli | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/build2/version/init.cxx b/build2/version/init.cxx index 631d899..cce8de9 100644 --- a/build2/version/init.cxx +++ b/build2/version/init.cxx @@ -190,6 +190,8 @@ namespace build2 // set ("version.project_id", v.string_project_id ()); + set ("version.stub", v.stub ()); // bool + set ("version.epoch", uint64_t (v.epoch)); set ("version.major", uint64_t (v.major ())); diff --git a/doc/manual.cli b/doc/manual.cli index 5e292bb..2af4b07 100644 --- a/doc/manual.cli +++ b/doc/manual.cli @@ -455,6 +455,8 @@ as the following build system variables (which can be used in the buildfiles): [uint64] version.project_number # 0010020025041 [string] version.project_id # 1.2.3-b.4.deadbeef +[bool] version.stub # false (true for 0[+<revision>]) + [uint64] version.epoch # 2 [uint64] version.major # 1 |