aboutsummaryrefslogtreecommitdiff
path: root/build2/version/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/version/init.cxx')
-rw-r--r--build2/version/init.cxx19
1 files changed, 5 insertions, 14 deletions
diff --git a/build2/version/init.cxx b/build2/version/init.cxx
index 76c30da..3f8a42a 100644
--- a/build2/version/init.cxx
+++ b/build2/version/init.cxx
@@ -176,24 +176,15 @@ namespace build2
rs.assign (v) = move (val);
};
- // Enough of project version for unique identification (can be used in
- // places like soname, etc).
- //
- string id (v.string_version ());
- if (v.snapshot ()) // Trailing dot already in id.
- {
- id += (v.snapshot_sn == standard_version::latest_sn
- ? "z"
- : (v.snapshot_id.empty ()
- ? to_string (v.snapshot_sn):
- v.snapshot_id));
- }
-
set ("version", v.string ()); // Package version.
set ("version.project", v.string_project ());
set ("version.project_number", v.version);
- set ("version.project_id", move (id));
+
+ // Enough of project version for unique identification (can be used in
+ // places like soname, etc).
+ //
+ set ("version.project_id", v.string_project_id ());
set ("version.epoch", uint64_t (v.epoch));