summaryrefslogtreecommitdiff
path: root/cli/cli/cli.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-04-22 12:50:14 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:39:53 +0300
commit4bbb90782628d40cd52e03e078611ad38cd74936 (patch)
tree7b6d2f1054d0dd20c49b92e895d672111e6175d7 /cli/cli/cli.cxx
parent720c5a33b6a49cf328fdd7611f49153cf8f60247 (diff)
Update metadata protocol
Diffstat (limited to 'cli/cli/cli.cxx')
-rw-r--r--cli/cli/cli.cxx10
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;
}