From ec3d77effb6afbed1bfd082e9717b3ce1094ac8f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 12 Feb 2020 20:19:32 +0300 Subject: Use copyright extracted from COPYRIGHT file for printing utility version --- bdep/buildfile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bdep/buildfile') 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). # -- cgit v1.1