aboutsummaryrefslogtreecommitdiff
path: root/clean
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:29:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-02-12 21:29:01 +0300
commit083ef2ecab0a9e206b417133cc7efb259f308652 (patch)
tree60f0ec939d55093c29bfa17a5dfcdbfd5eae0e6b /clean
parent443802c882885b16fae7f89ef2efafb0cfffd4e8 (diff)
Use copyright extracted from COPYRIGHT file for printing utility version
Diffstat (limited to 'clean')
-rw-r--r--clean/buildfile4
-rw-r--r--clean/clean.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/clean/buildfile b/clean/buildfile
index 1fc0d8a..11fa2a2 100644
--- a/clean/buildfile
+++ b/clean/buildfile
@@ -11,6 +11,10 @@ include ../libbrep/
exe{brep-clean}: {hxx ixx cxx}{* -clean-options} {hxx ixx cxx}{clean-options} \
../libbrep/lib{brep} $libs
+# Build options.
+#
+obj{clean}: cxx.poptions += -DBREP_COPYRIGHT=\"$copyright\"
+
# Generated options parser.
#
if $cli.configured
diff --git a/clean/clean.cxx b/clean/clean.cxx
index edc8cd9..d7a7731 100644
--- a/clean/clean.cxx
+++ b/clean/clean.cxx
@@ -61,7 +61,7 @@ namespace brep
<< "libbbot " << LIBBBOT_VERSION_ID << endl
<< "libbpkg " << LIBBPKG_VERSION_ID << endl
<< "libbutl " << LIBBUTL_VERSION_ID << endl
- << "Copyright (c) 2014-2019 Code Synthesis Ltd" << endl
+ << "Copyright (c) " << BREP_COPYRIGHT << "." << endl
<< "This is free software released under the MIT license." << endl;
return 0;