-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun.in
47 lines (37 loc) · 1.23 KB
/
run.in
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!@bash@
set -o pipefail -o errexit -o nounset
fail () {
printf 'ERROR: %s\n' "$*" >&2
exit 1
}
(( $# > 0 )) || fail "need a command"
command=$1
shift
case $command in
reconfigure )
@srcdir@/configure
;;
open-html | oh )
make -j @builddir@/tmp/dependencies.mk build_dependencies=true
make -j @builddir@/publish/niem-iepd-spec.html
open @builddir@/publish/niem-iepd-spec.html
;;
d )
make -j @builddir@/tmp/dependencies.mk build_dependencies=true
;;
all )
make -j @builddir@/tmp/dependencies.mk build_dependencies=true
make -j
;;
# publish )
# rm -rf @builddir@/tmp/publish-checkout
# current_branch=$(git -C @install_dir@ rev-parse --abbrev-ref HEAD)
# git -C @builddir@/tmp clone --branch gh-pages https://github.com/NIEM/MPD-Spec.git publish-checkout
# rm -rf @builddir@/tmp/publish-checkout/"$current_branch"
# git -C @install_dir@ publish -d @abs_builddir@/tmp/publish-checkout "$current_branch"
# echo "That's as far as it gets for now. Add to it when you have new content."
# exit 1
# ;;
* ) fail "Unknown command \"$command\""
;;
esac