diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-12 20:19:32 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-12 20:19:32 +0300 |
commit | ec3d77effb6afbed1bfd082e9717b3ce1094ac8f (patch) | |
tree | 3f01ac6908279f3fbe2e16e52a66f6f60340fec0 | |
parent | 7f7af331674f52f0155b4bcba4f511d5acf4dd00 (diff) |
Use copyright extracted from COPYRIGHT file for printing utility version
-rw-r--r-- | bdep/bdep.cxx | 2 | ||||
-rw-r--r-- | bdep/buildfile | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bdep/bdep.cxx b/bdep/bdep.cxx index e397eca..17d5f7d 100644 --- a/bdep/bdep.cxx +++ b/bdep/bdep.cxx @@ -336,7 +336,7 @@ try cout << "bdep " << BDEP_VERSION_ID << endl << "libbpkg " << LIBBPKG_VERSION_ID << endl << "libbutl " << LIBBUTL_VERSION_ID << endl - << "Copyright (c) 2014-2019 Code Synthesis Ltd" << endl + << "Copyright (c) " << BDEP_COPYRIGHT << "." << endl << "This is free software released under the MIT license." << endl; return 0; } diff --git a/bdep/buildfile b/bdep/buildfile index 378b4b3..06b6b02 100644 --- a/bdep/buildfile +++ b/bdep/buildfile @@ -75,6 +75,14 @@ for t: cxx{**.test...} # obj{utility}: cxx.poptions += -DBDEP_EXE_SUFFIX='"'$bin.exe.suffix'"' +# Pass the copyright notice extracted from the COPYRIGHT file. +# +copyright = $process.run_regex(cat $src_root/COPYRIGHT, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{bdep}: cxx.poptions += -DBDEP_COPYRIGHT=\"$copyright\" + # For now assume this is a staged toolchain if we are building with the staged # build system (see build.version.stage for details on the final plan). # |