diff options
-rwxr-xr-x | doc/doc.sh | 16 | ||||
-rw-r--r-- | doc/odb-epilogue.1 | 2 | ||||
-rw-r--r-- | doc/odb-epilogue.xhtml | 2 | ||||
-rw-r--r-- | doc/odb-prologue.xhtml | 2 |
4 files changed, 16 insertions, 6 deletions
@@ -1,7 +1,6 @@ #! /usr/bin/env bash version=2.5.0-b.6 -date="$(date +"%B %Y")" trap 'exit 1' ERR set -o errtrace # Trap in functions. @@ -9,6 +8,9 @@ set -o errtrace # Trap in functions. function info () { echo "$*" 1>&2; } function error () { info "$*"; exit 1; } +date="$(date +"%B %Y")" +copyright="$(sed -n -re 's%^Copyright \(c\) (.+)\.$%\1%p' ../LICENSE)" + while [ $# -gt 0 ]; do case $1 in --clean) @@ -36,14 +38,22 @@ function compile () # <input-name> <output-name> done # --html-suffix .xhtml - cli -I .. -v project="odb" -v version="$version" -v date="$date" \ + cli -I .. \ +-v project="odb" \ +-v version="$version" \ +-v date="$date" \ +-v copyright="$copyright" \ "${ops[@]}" --generate-html --stdout \ --html-prologue-file odb-prologue.xhtml \ --html-epilogue-file odb-epilogue.xhtml \ "../odb/$i.cli" >"$o.xhtml" # --man-suffix .1 - cli -I .. -v project="odb" -v version="$version" -v date="$date" \ + cli -I .. \ +-v project="odb" \ +-v version="$version" \ +-v date="$date" \ +-v copyright="$copyright" \ "${ops[@]}" --generate-man --stdout \ --man-prologue-file odb-prologue.1 \ --man-epilogue-file odb-epilogue.1 \ diff --git a/doc/odb-epilogue.1 b/doc/odb-epilogue.1 index aa80feb..e331b23 100644 --- a/doc/odb-epilogue.1 +++ b/doc/odb-epilogue.1 @@ -144,7 +144,7 @@ Send bug reports to the odb-users@codesynthesis.com mailing list. .\" COPYRIGHT .\" .SH COPYRIGHT -Copyright (c) 2009-2019 Code Synthesis Tools CC. +Copyright (c) $copyright$. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, diff --git a/doc/odb-epilogue.xhtml b/doc/odb-epilogue.xhtml index fda5ec6..9eba558 100644 --- a/doc/odb-epilogue.xhtml +++ b/doc/odb-epilogue.xhtml @@ -111,7 +111,7 @@ </div> <div id="footer"> - © 2009-2019 <a href="http://www.codesynthesis.com">Code Synthesis Tools CC</a> + Copyright © $copyright$. <div id="terms"> Permission is granted to copy, distribute and/or modify this diff --git a/doc/odb-prologue.xhtml b/doc/odb-prologue.xhtml index 95aa706..b8cc694 100644 --- a/doc/odb-prologue.xhtml +++ b/doc/odb-prologue.xhtml @@ -4,7 +4,7 @@ <head> <title>ODB 2.4.0 Compiler Command Line Manual</title> - <meta name="copyright" content="© 2009-2019 Code Synthesis Tools CC"/> + <meta name="copyright" content="© $copyright$"/> <meta name="keywords" content="odb,object,relational,mapping,compiler,c++"/> <meta name="description" content="ODB Compiler Command Line Manual"/> |