blob: 44d311af19fa9fe69ad5bedd3c138995ef6f2f80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#! /usr/bin/env bash
trap 'exit 1' ERR
set -o errtrace # Trap in functions.
function info () { echo "$*" 1>&2; }
function error () { info "$*"; exit 1; }
while [ $# -gt 0 ]; do
case $1 in
--clean)
rm -f build2-bash-style.xhtml
exit 0
;;
*)
error "unexpected $1"
;;
esac
done
cli --generate-html --html-suffix .xhtml \
--html-prologue-file doc-prologue.xhtml \
--html-epilogue-file doc-epilogue.xhtml \
--output-prefix build2- bash-style.cli
|