2007-02-07 01:40:59 -08:00
|
|
|
#!/bin/sh
|
2011-07-27 07:17:02 -07:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2007 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the Q Public License version 1.0. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
cd `dirname $0`/..
|
|
|
|
set -ex
|
2011-07-20 02:17:07 -07:00
|
|
|
TAG_LINE='true: -use_stdlib'
|
2007-10-08 07:19:34 -07:00
|
|
|
./boot/ocamlrun boot/myocamlbuild.boot \
|
|
|
|
-tag-line "$TAG_LINE" \
|
|
|
|
boot/stdlib.cma boot/std_exit.cmo
|
|
|
|
|
|
|
|
boot/ocamlrun boot/myocamlbuild.boot \
|
|
|
|
-tag-line "$TAG_LINE" -log _boot_log1 \
|
2007-02-07 01:40:59 -08:00
|
|
|
ocamlbuild/ocamlbuildlightlib.cma ocamlbuild/ocamlbuildlight.byte
|
2007-10-08 07:19:34 -07:00
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
rm -f _build/myocamlbuild
|
2007-10-08 07:19:34 -07:00
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
boot/ocamlrun boot/myocamlbuild.boot \
|
2007-10-08 07:19:34 -07:00
|
|
|
-just-plugin -install-lib-dir _build/ocamlbuild -byte-plugin
|
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
cp _build/myocamlbuild boot/myocamlbuild
|
2007-10-08 07:19:34 -07:00
|
|
|
|
|
|
|
./boot/ocamlrun boot/myocamlbuild \
|
|
|
|
-tag-line "$TAG_LINE" \
|
|
|
|
$@ -log _boot_log2 boot/camlheader ocamlc
|