diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-22 12:50:14 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-04-27 11:39:53 +0300 |
commit | 4bbb90782628d40cd52e03e078611ad38cd74936 (patch) | |
tree | 7b6d2f1054d0dd20c49b92e895d672111e6175d7 /cli/cli/cli.cxx | |
parent | 720c5a33b6a49cf328fdd7611f49153cf8f60247 (diff) |
Update metadata protocol
Diffstat (limited to 'cli/cli/cli.cxx')
-rw-r--r-- | cli/cli/cli.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cli/cli/cli.cxx b/cli/cli/cli.cxx index c57caee..6c51aae 100644 --- a/cli/cli/cli.cxx +++ b/cli/cli/cli.cxx @@ -34,13 +34,17 @@ main (int argc, char* argv[]) // Handle --build2-metadata (see also buildfile). // - if (ops.build2_metadata ()) + if (ops.build2_metadata_specified ()) { ostream& o (cout); + // Note that the export.metadata variable should be the first non- + // blank/comment line. + // o << "# build2 buildfile cli" << endl - << "cli.version = '" << CLI_VERSION_ID << '\'' << endl - << "cli.checksum = '" << CLI_CHECKSUM << '\'' << endl; + << "export.metadata = 1" << endl + << "cli.version = [string] '" << CLI_VERSION_FULL << '\'' << endl + << "cli.checksum = [string] '" << CLI_VERSION_FULL << '\'' << endl; return 0; } |