diff options
Diffstat (limited to 'ocaml-binary-annot/build/world.sh')
| -rwxr-xr-x | ocaml-binary-annot/build/world.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ocaml-binary-annot/build/world.sh b/ocaml-binary-annot/build/world.sh new file mode 100755 index 0000000000..0b9a4b2891 --- /dev/null +++ b/ocaml-binary-annot/build/world.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +######################################################################### +# # +# Objective Caml # +# # +# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt # +# # +# Copyright 2008 Institut National de Recherche en Informatique et # +# en Automatique. All rights reserved. This file is distributed # +# under the terms of the GNU Library General Public License, with # +# the special exception on linking described in file LICENSE. # +# # +######################################################################### + +cd `dirname $0` +set -e +if [ -e ocamlbuild_mixed_mode ]; then + echo ocamlbuild mixed mode detected + echo 'please cleanup and re-launch (make clean ; ./build/distclean.sh)' + exit 1 +fi +case "$1" in + all|a|al) mode=all;; + byte|b|by|byt) mode=byte;; + native|na|nat|nati|nativ) mode=native;; + *) echo 'Unexpected target. Expected targets are: all,byte,native' \ + >/dev/stderr + exit 1;; +esac +shift +./mkconfig.sh +./mkmyocamlbuild_config.sh +./boot-c-parts.sh +./boot.sh "$@" +./world."$mode".sh "$@" |
