| 1 |
######################################################################### |
| 2 |
# # |
| 3 |
# OCaml # |
| 4 |
# # |
| 5 |
# Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt # |
| 6 |
# # |
| 7 |
# Copyright 2007 Institut National de Recherche en Informatique et # |
| 8 |
# en Automatique. All rights reserved. This file is distributed # |
| 9 |
# under the terms of the Q Public License version 1.0. # |
| 10 |
# # |
| 11 |
######################################################################### |
| 12 |
|
| 13 |
#!/bin/sh |
| 14 |
cd `dirname $0` |
| 15 |
set -e |
| 16 |
set -x |
| 17 |
CMDOPTS="" # -- command args |
| 18 |
BUILD="$OCB bbcc.cma main.byte bbcc.cmxa main.native -classic-display $@" |
| 19 |
BUILD1="$BUILD $CMDARGS" |
| 20 |
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDARGS" |
| 21 |
rm -rf _build |
| 22 |
cp bb1.ml bb.ml |
| 23 |
$BUILD1 |
| 24 |
$BUILD2 |
| 25 |
cp bb2.ml bb.ml |
| 26 |
$BUILD1 -verbose 0 |
| 27 |
$BUILD2 |
| 28 |
cp bb3.ml bb.ml |
| 29 |
$BUILD1 -verbose 0 |
| 30 |
$BUILD2 |
| 31 |
$OCB -clean |
| 32 |
rm bb.ml |