forked from dbuenzli/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·31 lines (27 loc) · 884 Bytes
/
build
File metadata and controls
executable file
·31 lines (27 loc) · 884 Bytes
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
#!/bin/sh
# This script is only used for developement. It is removed by the
# distribution process.
set -e
OCAMLBUILD=${OCAMLBUILD:="ocamlbuild -tag debug -classic-display \
-use-ocamlfind"}
action ()
{
case $1 in
default) $OCAMLBUILD react.cmx ;;
tests) $OCAMLBUILD test/tests.otarget ;;
js_test) shift;
jsoo-build $* `opam config var js_of_ocaml:lib`/weak.js \
test/js_test.ml
;;
js_hisig_test) shift;
jsoo-build $* `opam config var js_of_ocaml:lib`/weak.js \
test/js_hisig_test.ml
;;
doc) shift; pkg-doc $* doc/api.docdir ;;
clean) $OCAMLBUILD -clean ;;
*) $OCAMLBUILD $* ;;
esac
}
if [ $# -eq 0 ];
then action default ;
else action $*; fi