aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-11 20:17:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-12 16:49:44 +0300
commit0b95ca508ed4d664721f41dccda6b49e87941d00 (patch)
tree644992791d2a048b70045393f29500c4ffe85052 /build2/b.cxx
parentd712f69f5f769c5eaada3c1f76419abfb7b6f7ed (diff)
Use copyright extracted from COPYRIGHT file for printing build2 version
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index 2917ad1..eafa1dc 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -442,9 +442,13 @@ main (int argc, char* argv[])
{
cout << "build2 " << LIBBUILD2_VERSION_ID << endl
<< "libbutl " << LIBBUTL_VERSION_ID << endl
- << "host " << BUILD2_HOST_TRIPLET << endl
- << "Copyright (c) 2014-2019 Code Synthesis Ltd" << endl
- << "This is free software released under the MIT license." << endl;
+ << "host " << BUILD2_HOST_TRIPLET << endl;
+
+#ifndef BUILD2_BOOTSTRAP
+ cout << "Copyright (c) " << BUILD2_COPYRIGHT << "." << endl;
+#endif
+
+ cout << "This is free software released under the MIT license." << endl;
return 0;
}