summaryrefslogtreecommitdiff
path: root/doc/doc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/doc.sh')
-rwxr-xr-xdoc/doc.sh16
1 files changed, 13 insertions, 3 deletions
diff --git a/doc/doc.sh b/doc/doc.sh
index a5517af..4e96aed 100755
--- a/doc/doc.sh
+++ b/doc/doc.sh
@@ -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 \