forked from crux-toolkit/crux-toolkit.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
runall
executable file
·28 lines (24 loc) · 794 Bytes
/
runall
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash -x
# These three options make it harder to for some part of a script to
# fail without you recognizing it. nounset means that references to an
# unset variable result in an error. This means that you can no longer
# do stuff like this if VAR is potentially unset, because "$VAR" returns
# an error rather than "":
#
# if [ "$VAR" ]; then
#
# fi
#
# To explicitly indicate that you are OK with the variable potentially
# being empty you can instead use ${VAR:-}.
# To avoid errexit for a single command, use "|| true", e.g.,
# diff foo foobar || true
set -o nounset
set -o pipefail
set -o errexit
set -o xtrace
CRUX=../../src/crux
for command in `$CRUX create-docs list`; do
$CRUX create-docs $command > $command.html
done
$CRUX create-docs default-params > default.params