diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-13 11:28:21 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-02-13 14:43:20 +0300 |
commit | 4264df570c04a85ef4c36fdd0ff197cfe3bb557c (patch) | |
tree | 92f26f04c97eabaa9e6d24d3ff4f51b0b9c1aca4 /odb/buildfile | |
parent | 3ea7899eb449a5094ae6d7b7707bbde6f57c5dd7 (diff) |
Use copyright extracted from LICENSE file for printing utility version
Diffstat (limited to 'odb/buildfile')
-rw-r--r-- | odb/buildfile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/buildfile b/odb/buildfile index e879349..8c8d458 100644 --- a/odb/buildfile +++ b/odb/buildfile @@ -87,6 +87,14 @@ libus{odb}: {hxx ixx txx cxx}{** -odb -options} {hxx ixx cxx}{options} $libs cxx.poptions += "-I$plugin_dir/include" "-DODB_GXX_NAME=\"$gxx_name\"" cxx.poptions += -DODB_BUILD2 # @@ TMP while supporting other build systems. +# Pass the copyright notice extracted from the LICENSE file. +# +copyright = $process.run_regex(cat $src_root/LICENSE, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{odb}: cxx.poptions += -DODB_COPYRIGHT=\"$copyright\" + # Generated options parser. # # @@ TMP: currently generated code is committed to allow building from git. |