2007-02-07 01:40:59 -08:00
|
|
|
#!/bin/sh
|
2010-05-21 04:48:35 -07:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# Objective Caml #
|
|
|
|
# #
|
|
|
|
# Nicolas Pouillard, Berke Durak, 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-10-08 07:19:34 -07:00
|
|
|
# $Id$
|
2010-05-21 04:48:35 -07:00
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
cd `dirname $0`/..
|
|
|
|
set -xe
|
|
|
|
if [ ! -x _build/ocamlbuild/ocamlbuildlight.byte ]; then
|
|
|
|
if [ ! -x ocamlbuild/_build/ocamlbuildlight.byte ]; then
|
2010-05-21 04:48:35 -07:00
|
|
|
(cd ocamlbuild && ${GNUMAKE:-make})
|
2007-02-07 01:40:59 -08:00
|
|
|
fi
|
|
|
|
mkdir -p _build/ocamlbuild
|
2010-01-22 04:48:24 -08:00
|
|
|
for i in "light.cmo" "light.byte" "lightlib.cma" "_plugin.cmi" "_pack.cmi"
|
2007-10-08 07:19:34 -07:00
|
|
|
do
|
2010-01-22 04:48:24 -08:00
|
|
|
cp ocamlbuild/_build/ocamlbuild$i _build/ocamlbuild
|
2007-10-08 07:19:34 -07:00
|
|
|
done
|
2007-02-07 01:40:59 -08:00
|
|
|
fi
|
2007-10-08 07:19:34 -07:00
|
|
|
rm -f ocamlbuild/myocamlbuild_config.ml ocamlbuild/myocamlbuild_config.mli
|
2007-02-07 01:40:59 -08:00
|
|
|
rm -rf _build/myocamlbuild boot/myocamlbuild boot/myocamlbuild.native
|
|
|
|
./boot/ocamlrun _build/ocamlbuild/ocamlbuildlight.byte -no-hygiene \
|
2007-10-08 07:19:34 -07:00
|
|
|
-tag debug -install-lib-dir _build/ocamlbuild -byte-plugin -just-plugin
|
2007-02-07 01:40:59 -08:00
|
|
|
cp _build/myocamlbuild boot/myocamlbuild.boot
|