From fe72aa9de64384b0f1465d4862f09caa3bc12f20 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 12 Feb 2020 21:05:38 +0300 Subject: Use copyright extracted from COPYRIGHT file for printing utility version --- openssl/buildfile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'openssl/buildfile') diff --git a/openssl/buildfile b/openssl/buildfile index 2d0e680..ab25be9 100644 --- a/openssl/buildfile +++ b/openssl/buildfile @@ -49,6 +49,17 @@ for t: cxx{**.test...} $d/exe{$n}: $d/libue{openssl}: bin.whole = false } +# Build options. +# +# Pass the copyright notice extracted from the COPYRIGHT file. +# +copyright = $process.run_regex(cat $src_root/COPYRIGHT, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{agent/pkcs11/agent client/client}: \ + cxx.poptions += -DOPENSSL_AGENT_COPYRIGHT=\"$copyright\" + # Generated options parser. # if $cli.configured -- cgit v1.1