From 6e665fb88b3c9e40433346b85bd3bacdab913647 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 13 Feb 2020 20:15:52 +0300 Subject: Use copyright extracted from LICENSE file for printing utility version --- cli/buildfile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cli/buildfile') diff --git a/cli/buildfile b/cli/buildfile index b267ab9..7d634e0 100644 --- a/cli/buildfile +++ b/cli/buildfile @@ -11,6 +11,16 @@ libue{cli}: {hxx ixx txx cxx}{** -cli -version -options} \ hxx{version}: in{version} $src_root/manifest +# Build options. +# +# Pass the copyright notice extracted from the LICENSE file. +# +copyright = $process.run_regex(cat $src_root/LICENSE, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{cli}: cxx.poptions += -DCLI_COPYRIGHT=\"$copyright\" + # Generated options parser. # if $cli.configured -- cgit v1.1