forked from mirage/mirage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·18 lines (14 loc) · 841 Bytes
/
Copy pathbuild
File metadata and controls
executable file
·18 lines (14 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -ex
WITH_LWT=`ocamlfind query lwt cstruct ipaddr 2>/dev/null || echo ""`
ocamlbuild -tag bin_annot types/V1.cmi
ocamlbuild -tag bin_annot types/V2.cmi
FILES="types/META _build/types/V1.mli _build/types/V1.cmi _build/types/V2.mli _build/types/V2.cmi -optional _build/types/V1.cmti -optional _build/types/V2.cmti"
if [ "$WITH_LWT" != "" ]; then
ocamlbuild -use-ocamlfind -pkgs lwt,io-page,cstruct,ipaddr -tag bin_annot -I types types/V1_LWT.cmi
ocamlbuild -use-ocamlfind -pkgs lwt,io-page,cstruct,ipaddr -tag bin_annot -I types types/V2_LWT.cmi
FILES="${FILES} _build/types/V1_LWT.cmi _build/types/V2_LWT.cmi _build/types/V1_LWT.mli _build/types/V2_LWT.mli _build/types/V1_LWT.cmti _build/types/V2_LWT.cmti"
fi
if [ "$1" = "true" ]; then
ocamlfind remove mirage-types || true
ocamlfind install mirage-types ${FILES}
fi