aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/version/init.cxx2
-rw-r--r--doc/manual.cli2
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