aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-18 15:47:51 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-18 18:07:49 +0300
commit284844a1284688f383b7e89442fc2c16110d25fd (patch)
treeba018d98dce37f2c472572ea21636b86f1076ed1 /build2
parent459145ee64c009d4bc72a2e592ea5be20f52968d (diff)
Fix copyright notice extraction for building and documentation generating
Diffstat (limited to 'build2')
-rw-r--r--build2/buildfile9
1 files changed, 5 insertions, 4 deletions
diff --git a/build2/buildfile b/build2/buildfile
index bfd68cb..549016c 100644
--- a/build2/buildfile
+++ b/build2/buildfile
@@ -20,11 +20,12 @@ exe{b}: {hxx ixx txx cxx}{** -b-options} {hxx ixx cxx}{b-options} $libs
#
obj{b}: cxx.poptions += -DBUILD2_HOST_TRIPLET=\"$cxx.target\"
-# Pass the copyright notice extracted from the COPYRIGHT file.
+# Pass the copyright notice extracted from the LICENSE file.
#
-copyright = $process.run_regex(cat $src_root/COPYRIGHT, \
- 'Copyright \(c\) (.+)\.', \
- '\1')
+copyright = $process.run_regex( \
+ cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+) \(see the AUTHORS file\)\.', \
+ '\1')
obj{b}: cxx.poptions += -DBUILD2_COPYRIGHT=\"$copyright\"