diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-11 13:37:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-11 17:56:12 +0300 |
commit | ea9063805ce849d2ef81396e53aa1437a520fe5e (patch) | |
tree | aea569f674f7fcd26f7a75ed2962c7c1aa01a0b6 /doc/cli.sh | |
parent | dd1d5472bf28beba971d2b507fab53dec43939f7 (diff) |
Complete doc/ infra
Diffstat (limited to 'doc/cli.sh')
-rwxr-xr-x | doc/cli.sh | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -22,6 +22,41 @@ while [ $# -gt 0 ]; do esac done +function compile () +{ + local n=$1; shift + + # Use a bash array to handle empty arguments. + # + local o=() + while [ $# -gt 0 ]; do + o=("${o[@]}" "$1") + shift + done + + cli -I .. -v project="bbot" -v version="$version" -v date="$date" \ +--include-base-last "${o[@]}" --generate-html --html-prologue-file \ +man-prologue.xhtml --html-epilogue-file man-epilogue.xhtml --html-suffix \ +.xhtml ../$n.cli + + cli -I .. -v project="bbot" -v version="$version" -v date="$date" \ +--include-base-last "${o[@]}" --generate-man --man-prologue-file \ +man-prologue.1 --man-epilogue-file man-epilogue.1 --man-suffix .1 \ +../$n.cli +} + +o="--output-prefix bbot-" + +# A few special cases. +# +#compile "bbot" $o --output-prefix "" + +pages="bbot/agent bbot/worker" + +for p in $pages; do + compile $p $o +done + # Manuals. # |