-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.sh
executable file
·45 lines (40 loc) · 877 Bytes
/
build.sh
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
#!/bin/sh
#################################################################
#
# BUILDATOR
#
# Script to build the non-distributed version of IMITATOR
#
# Université Paris 13, LIPN, CNRS, France
#
# Author: Étienne André
#
# Created: 2014/01/13
# Last modified: 2019/06/04
#
################################################################
# options handling
flags="--disable-dev"
while test $# -gt 0; do
case "$1" in
--no-distclean)
disableDistClean=true;;
--dev)
disableDistClean=true
flags="--enable-dev";;
esac
shift
done
# clean the project
if [ -f "setup.ml" ] && [ "$disableDistClean" != true ]
then
ocaml setup.ml -distclean
fi
if [ ! -d "bin" ]
then
mkdir bin
fi
python gen_oasis.py \
&& oasis setup \
&& ocaml setup.ml -configure --enable-tests $flags \
&& ocaml setup.ml -all