aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-19 13:52:15 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-19 13:52:15 +0300
commit001a9cc3f7d5077905b9ad2dde0376b9d12baff4 (patch)
treea2a9e7c1051d5e01d51ac19fde5e3f9157f8d748
parentdcd3eb72d044fd9dc95a0be46e559100e4749aa3 (diff)
Fix copyright notice extraction for building and documentation generating
-rw-r--r--bdep/buildfile6
-rwxr-xr-xdoc/cli.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/bdep/buildfile b/bdep/buildfile
index 5ed00a0..605ebcd 100644
--- a/bdep/buildfile
+++ b/bdep/buildfile
@@ -77,9 +77,9 @@ obj{utility}: cxx.poptions += -DBDEP_EXE_SUFFIX='"'$bin.exe.suffix'"'
# Pass the copyright notice extracted from the LICENSE file.
#
-copyright = $process.run_regex( \
- cat $src_root/LICENSE, \
- 'Copyright \(c\) (.+) \(see the AUTHORS file\)\.', \
+copyright = $process.run_regex( \
+ cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+) \(see the AUTHORS and LEGAL files\)\.', \
'\1')
obj{bdep}: cxx.poptions += -DBDEP_COPYRIGHT=\"$copyright\"
diff --git a/doc/cli.sh b/doc/cli.sh
index 35bbde0..44886aa 100755
--- a/doc/cli.sh
+++ b/doc/cli.sh
@@ -9,7 +9,7 @@ function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }
date="$(date +"%B %Y")"
-copyright="$(sed -n -re 's%^Copyright \(c\) (.+) \(see the AUTHORS file\)\.$%\1%p' ../LICENSE)"
+copyright="$(sed -n -re 's%^Copyright \(c\) (.+) \(see the AUTHORS and LEGAL files\)\.$%\1%p' ../LICENSE)"
while [ $# -gt 0 ]; do
case $1 in