summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/.ignore1
-rwxr-xr-xbuild/boot-c-parts.sh50
-rwxr-xr-xbuild/boot.sh39
-rwxr-xr-xbuild/buildbot119
-rw-r--r--build/camlp4-bootstrap-recipe.txt180
-rwxr-xr-xbuild/camlp4-bootstrap.sh51
-rwxr-xr-xbuild/camlp4-byte-only.sh23
-rwxr-xr-xbuild/camlp4-mkCamlp4Ast.sh36
-rwxr-xr-xbuild/camlp4-native-only.sh23
-rw-r--r--build/camlp4-targets.sh46
-rwxr-xr-xbuild/distclean.sh37
-rwxr-xr-xbuild/fastworld.sh47
-rwxr-xr-xbuild/install.sh475
-rwxr-xr-xbuild/mixed-boot.sh21
-rwxr-xr-xbuild/mk_shell_and_ocamlbuild_config.sh65
-rwxr-xr-xbuild/mkruntimedef.sh21
-rwxr-xr-xbuild/myocamlbuild.sh31
-rw-r--r--build/new-build-system46
-rwxr-xr-xbuild/ocamlbuild-byte-only.sh19
-rwxr-xr-xbuild/ocamlbuild-native-only.sh19
-rwxr-xr-xbuild/ocamlbuildlib-native-only.sh19
-rw-r--r--build/otherlibs-targets.sh103
-rwxr-xr-xbuild/partial-install.sh159
-rw-r--r--build/targets.sh63
-rwxr-xr-xbuild/world.all.sh24
-rwxr-xr-xbuild/world.byte.sh21
-rwxr-xr-xbuild/world.native.sh22
-rwxr-xr-xbuild/world.sh34
28 files changed, 0 insertions, 1794 deletions
diff --git a/build/.ignore b/build/.ignore
deleted file mode 100644
index 274c6e555b..0000000000
--- a/build/.ignore
+++ /dev/null
@@ -1 +0,0 @@
-ocamlbuild_mixed_mode
diff --git a/build/boot-c-parts.sh b/build/boot-c-parts.sh
deleted file mode 100755
index fd5a35c72b..0000000000
--- a/build/boot-c-parts.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-cd `dirname $0`/..
-set -ex
-
-. config/config.sh
-
-if "$WINDOWS"; then
- MAKEOPTS='-f Makefile.nt'
- LINK='cp -f'
-else
- MAKEOPTS=''
- LINK='ln -s -f'
-fi
-
-(cd byterun && make $MAKEOPTS)
-(cd asmrun && make $MAKEOPTS all meta."$O" dynlink."$O")
-(cd yacc && make $MAKEOPTS)
-
-if "$WINDOWS"; then
- (cd win32caml && make)
-fi
-
-mkdir -p _build/boot
-
-# Create a bunch of symlinks (or copies) to _build/boot
-(cd _build/boot &&
-$LINK ../../byterun/ocamlrun$EXE \
- ../../byterun/libcamlrun.$A \
- ../../asmrun/libasmrun.$A \
- ../../yacc/ocamlyacc$EXE \
- ../../boot/ocamlc \
- ../../boot/ocamllex \
- ../../boot/ocamldep \
- . )
-
-(cd boot &&
-[ -f boot/ocamlrun$EXE ] || $LINK ../byterun/ocamlrun$EXE . )
diff --git a/build/boot.sh b/build/boot.sh
deleted file mode 100755
index ca6eaabacd..0000000000
--- a/build/boot.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-cd `dirname $0`/..
-set -ex
-TAG_LINE='true: -use_stdlib'
-
-STDLIB_MODULES='Pervasives,Arg,Array,Buffer,Char,Digest,Filename,Format,Hashtbl,Lazy,Lexing,List,Map,Printexc,Printf,Scanf,Set,String,Sys,Parsing,Int32,Int64,Nativeint,Obj,Queue,Sort,Stream,Stack'
-
-./boot/ocamlrun boot/myocamlbuild.boot -ignore "$STDLIB_MODULES" \
- -tag-line "$TAG_LINE" -no-ocamlfind \
- boot/stdlib.cma boot/std_exit.cmo
-
-boot/ocamlrun boot/myocamlbuild.boot \
- -tag-line "$TAG_LINE" -no-ocamlfind -log _boot_log1 \
- ocamlbuild/ocamlbuildlightlib.cma ocamlbuild/ocamlbuildlight.byte
-
-rm -f _build/myocamlbuild
-
-boot/ocamlrun boot/myocamlbuild.boot \
- -just-plugin -install-lib-dir _build/ocamlbuild -byte-plugin \
- -no-ocamlfind || exit 1
-
-cp _build/myocamlbuild boot/myocamlbuild
-
-./boot/ocamlrun boot/myocamlbuild -no-ocamlfind \
- -tag-line "$TAG_LINE" \
- $@ -log _boot_log2 boot/camlheader ocamlc
diff --git a/build/buildbot b/build/buildbot
deleted file mode 100755
index d7e010365f..0000000000
--- a/build/buildbot
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-# If you want to help me by participating to the build/test effort:
-# http://gallium.inria.fr/~pouillar/ocaml-testing.html
-# -- Nicolas Pouillard
-
-usage() {
- echo "Usage: $0 (make|ocb|ocamlbuild) (win (mingw|msvc|msvc64) | <configure-arg>*)"
- exit 1
-}
-
-logfile="buildbot.log"
-
-finish() {
- curl -s -0 -F "log=@$logfile" \
- -F "host=`hostname`" \
- -F "mode=$mode-$opt_win-$opt_win2" \
- http://buildbot.feydakins.org/dropbox || :
-}
-
-rm -f buildbot.failed
-rm -f $logfile
-
-bad() {
- touch buildbot.failed
-}
-
-finish_if_bad() {
- if [ -f buildbot.failed ]; then
- finish
- exit 2
- fi
-}
-
-if figlet "test" > /dev/null 2> /dev/null; then
- draw="figlet"
-else
- draw="echo ----------- "
-fi
-
-if echo | tee -a tee.log > /dev/null 2> /dev/null; then
- tee="tee -a $logfile"
-else
- tee=:
-fi
-
-rm -f tee.log
-
-log() {
- $draw $@
- $tee
-}
-
-mode=$1
-shift 1
-
-case "$mode" in
- make|ocb|ocamlbuild) : ;;
- *) usage;;
-esac
-
-case "$1" in
- win)
- opt_win=win
- opt_win2=$2
- shift 2
- Makefile=Makefile.nt;;
- *) Makefile=Makefile;;
-esac
-
-( [ -f config/Makefile ] && make -f $Makefile clean || : ) 2>&1 | log clean
-
-( ./build/distclean.sh || : ) 2>&1 | log distclean
-
-(cvs -q up -dP -r release311 || bad) 2>&1 | log cvs up
-finish_if_bad
-
-case "$opt_win" in
-win)
- cp config/m-nt.h config/m.h || bad
- finish_if_bad
- cp config/s-nt.h config/s.h || bad
- finish_if_bad
- ;;
-
-*)
- (./configure --prefix `pwd`/_install $@ || bad) 2>&1 | log configure
- finish_if_bad
- ;;
-esac
-
-case "$mode" in
- make)
- (make -f $Makefile world opt opt.opt install || bad) 2>&1 | log build install
- finish_if_bad
- ;;
- ocb|ocamlbuild)
- (./build/fastworld.sh || bad) 2>&1 | log build
- finish_if_bad
- (./build/install.sh || bad) 2>&1 | log install
- finish_if_bad
- ;;
-esac
-
-(cat _build/not_installed || bad) 2>&1 | log not_installed
-
-finish
diff --git a/build/camlp4-bootstrap-recipe.txt b/build/camlp4-bootstrap-recipe.txt
deleted file mode 100644
index 8a3a7b1226..0000000000
--- a/build/camlp4-bootstrap-recipe.txt
+++ /dev/null
@@ -1,180 +0,0 @@
-#########################################################################
-# #
-# OCaml #
-# #
-# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
-# #
-# Copyright 2010 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. #
-# #
-#########################################################################
-
-=== Initial setup ===
- make clean
- ./build/distclean.sh
- ./configure -prefix `pwd`/_install
- ./build/fastworld.sh
- # Go to "Bootstrap camlp4"
-
-=== Install the bootstrapping camlp4 processor ===
- ./build/install.sh
-
-=== Build camlp4 ===
- # This step is not needed right after a "./build/world.sh byte"
- ./build/camlp4-byte-only.sh
-
-=== Bootstrap camlp4 ===
- # First "Build camlp4"
- # Then "Install the bootstrapping camlp4 processor"
- # Indeed the following bootstrapping script
- # does use the installed version!
- ./build/camlp4-bootstrap.sh
- # If the fixpoint not is reached yet
- # Go to "Bootstrap camlp4"
- # Otherwise
- # Have a look at the changes in
- # camlp4/boot it may be a good idea to commit them
-
-=== Generate Camlp4Ast.ml ===
- # First "Install the bootstrapping camlp4 processor"
- # Indeed the following bootstrapping script
- # does use the installed version!
- ./build/camlp4-mkCamlp4Ast.sh
-
-=== Case study "let open M in e" ===
-
- Open the revised parser
- Camlp4Parsers/Camlp4OCamlRevisedParser.ml
-
- Look for similar constructs, indeed rules
- that start by the same prefix should in
- the same entry. It is simpler to stick
- them close to each other.
-
- [ "let"; r = opt_rec; ...
- | "let"; "module"; m = a_UIDENT; ...
-
- So we naturally add something like
-
- | "let"; "open"; ...
-
- Then have a look to the "open" construct:
-
- | "open"; i = module_longident ->
-
- So we need a module_longident, it becomes:
-
- | "let"; "open"; i = module_longident; "in"; e = SELF ->
-
- Then we leave a dummy action but very close to what we want
- in the end:
-
- | "let"; "open"; i = module_longident; "in"; e = SELF ->
- <:expr< open_in $id:i$ $e$ >>
-
- Here it is just calling a (non-existing) function called open_in.
-
- Check that there is no other place where we have to duplicate this
- rule (yuk!). In our case it is! The sequence entry have the "let"
- rules again.
-
- Then go into Camlp4Parsers/Camlp4OCamlParser.ml and look for other
- occurences.
-
- When copy/pasting the rule take care of SELF occurences, you may
- have to replace it by expr and expr LEVEL ";" in our case.
-
- The return type of the production might be different from expr in
- our case an action become <:str_item<...>> instead of <:expr<...>
-
- Watch the DELETE_RULE as well, in our case I'm searching for the
- literal string "let" in the source:
-
- DELETE_RULE Gram expr: "let"; "open"; module_longident; "in"; SELF END;
-
- Then build and bootstrap.
-
- Then you can at last extend the AST, go in:
-
- Camlp4/Camlp4Ast.partial.ml
-
- And add the "open in" constructor (at the end).
-
- (* let open i in e *)
- | ExOpI of loc and ident and expr
-
- Then "Generate Camlp4Ast.ml" and build.
-
- We get a single warning in Camlp4/Struct/Camlp4Ast2OCamlAst.ml but
- don't fix it now. Notice that you may need to disable '-warn-error'
- in order to be able to successfully compile, despite of the warning.
-
- Then I hacked the camlp4/boot/camlp4boot.ml to generate:
- Ast.ExOpI(_loc, i, e)
- instead of
- Ast.ExApp(_loc .... "open_in" ... i ... e ...)
-
- Build. Bootstrap once and build again.
-
- Then change the parsers again and replace the
- open_in $id:i$ $e$
- by
- let open $i$ in $e$
-
- Then change the Parsetree generation in
- Camlp4/Struct/Camlp4Ast2OCamlAst.ml
-
- | <:expr@loc< let open $i$ in $e$ >> ->
- mkexp loc (Pexp_open (long_uident i) (expr e))
-
- Change the pretty-printers as well (drawing inspiration in
- "let module" in this case):
-
- In Camlp4/Printers/OCaml.ml:
- | <:expr< let open $i$ in $e$ >> ->
- pp f "@[<2>let open %a@]@ @[<2>in@ %a@]"
- o#ident i o#reset_semi#expr e
- And at the end of #simple_expr:
- <:expr< let open $_$ in $_$ >>
-
- Have a look in Camlp4/Printers/OCamlr.ml as well.
-
-=== Second case study "with t := ..." ===
-
-1/ Change the revised parser first.
-Add new parsing rules for := but keep the old actions for now.
-
-2/ Change Camlp4Ast.partial.ml, add:
- (* type t := t *)
- | WcTyS of loc and ctyp and ctyp
- (* module i := i *)
- | WcMoS of loc and ident and ident
-
-3/ "Generate Camlp4Ast.ml" and build.
-
-4/ Change the generated camlp4/boot/camlp4boot.ml:
- Look for ":=" and change occurences of
- WcMod by WcMoS and WcTyp by WcTyS
-
-5/ Build (DO NOT bootstrap)
- "Install the bootstrapping camlp4 processor"
-
-6/ Change the required files:
- Camlp4/Printers/OCaml.ml:
- just copy/paste&adapt what is done for
- "... with type t = u" and
- "... with module M = N"
- Camlp4/Struct/Camlp4Ast2OCamlAst.ml:
- I've factored out a common part under
- another function and then copy/pasted.
- Camlp4Parsers/Camlp4OCamlRevisedParser.ml:
- Change the <:with_constr< type $...$ = $...$ >>
- we've introduced earlier by replacing the '='
- by ':='.
- Camlp4Parsers/Camlp4OCamlParser.ml:
- Copy paste what we have done in Camlp4OCamlRevisedParser
- and but we need to call opt_private_ctyp instead of
- ctyp (just like the "type =" construct).
-
-7/ Build & Bootstrap
diff --git a/build/camlp4-bootstrap.sh b/build/camlp4-bootstrap.sh
deleted file mode 100755
index 70600c09b9..0000000000
--- a/build/camlp4-bootstrap.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-# README: to bootstrap camlp4 have a look at build/camlp4-bootstrap-recipe.txt
-
-set -e
-cd `dirname $0`/..
-
-. config/config.sh
-export PATH=$BINDIR:$PATH
-
-TMPTARGETS="\
- camlp4/boot/Lexer.ml"
-
-TARGETS="\
- camlp4/Camlp4/Struct/Camlp4Ast.ml \
- camlp4/boot/Camlp4.ml \
- camlp4/boot/camlp4boot.ml"
-
-for target in $TARGETS camlp4/boot/Camlp4Ast.ml; do
- [ -f "$target" ] && mv "$target" "$target.old"
- rm -f "_build/$target"
-done
-
-if [ -x ./boot/myocamlbuild.native ]; then
- OCAMLBUILD=./boot/myocamlbuild.native -no-ocamlfind
-else
- OCAMLBUILD="./boot/ocamlrun boot/myocamlbuild -no-ocamlfind"
-fi
-$OCAMLBUILD $TMPTARGETS $TARGETS
-
-for t in $TARGETS; do
- echo promote $t
- cp _build/$t camlp4/boot/`basename $t`
- if cmp _build/$t camlp4/boot/`basename $t`.old; then
- echo fixpoint for $t
- else
- echo $t is different, you should rebootstrap it by cleaning, building and call this script
- fi
-done
diff --git a/build/camlp4-byte-only.sh b/build/camlp4-byte-only.sh
deleted file mode 100755
index 8f4ed4e208..0000000000
--- a/build/camlp4-byte-only.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-
-# If you modify this list, modify it also in boot.sh
-STDLIB_MODULES='Pervasives,Arg,Array,Buffer,Char,Digest,Filename,Format,Hashtbl,Lazy,Lexing,List,Map,Printexc,Printf,Scanf,Set,String,Sys,Parsing,Int32,Int64,Nativeint,Obj,Queue,Sort,Stream,Stack'
-
-$OCAMLBUILD -ignore "$STDLIB_MODULES" $@ byte_stdlib_mixed_mode $OCAMLC_BYTE $OCAMLLEX_BYTE $CAMLP4_BYTE
diff --git a/build/camlp4-mkCamlp4Ast.sh b/build/camlp4-mkCamlp4Ast.sh
deleted file mode 100755
index 0ff20e8b28..0000000000
--- a/build/camlp4-mkCamlp4Ast.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
-# #
-# Copyright 2010 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. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-
-. config/config.sh
-export PATH=$BINDIR:$PATH
-
-CAMLP4AST=camlp4/Camlp4/Struct/Camlp4Ast.ml
-BOOTP4AST=camlp4/boot/Camlp4Ast.ml
-
-[ -f "$BOOTP4AST" ] && mv "$BOOTP4AST" "$BOOTP4AST.old"
-rm -f "_build/$BOOTP4AST"
-rm -f "_build/$CAMLP4AST"
-
-if [ -x ./boot/myocamlbuild.native ]; then
- OCAMLBUILD=./boot/myocamlbuild.native
-else
- OCAMLBUILD="./boot/ocamlrun boot/myocamlbuild"
-fi
-$OCAMLBUILD $CAMLP4AST
-
-echo promote $CAMLP4AST
-cp _build/$CAMLP4AST camlp4/boot/`basename $CAMLP4AST`
diff --git a/build/camlp4-native-only.sh b/build/camlp4-native-only.sh
deleted file mode 100755
index d53395c238..0000000000
--- a/build/camlp4-native-only.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-
-# If you modify this list, modify it also in boot.sh
-STDLIB_MODULES='Pervasives,Arg,Array,Buffer,Char,Digest,Filename,Format,Hashtbl,Lazy,Lexing,List,Map,Printexc,Printf,Scanf,Set,String,Sys,Parsing,Int32,Int64,Nativeint,Obj,Queue,Sort,Stream,Stack'
-
-$OCAMLBUILD -ignore "$STDLIB_MODULES" $@ native_stdlib_mixed_mode $OCAMLOPT_BYTE $OCAMLLEX_BYTE $CAMLP4_NATIVE
diff --git a/build/camlp4-targets.sh b/build/camlp4-targets.sh
deleted file mode 100644
index 8fbaafb590..0000000000
--- a/build/camlp4-targets.sh
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-CAMLP4_COMMON="\
- camlp4/Camlp4/Camlp4Ast.partial.ml \
- camlp4/boot/camlp4boot.byte"
-CAMLP4_BYTE="$CAMLP4_COMMON \
- camlp4/Camlp4.cmo \
- camlp4/Camlp4Top.cmo \
- camlp4/camlp4prof.byte$EXE \
- camlp4/mkcamlp4.byte$EXE \
- camlp4/camlp4.byte$EXE \
- camlp4/camlp4fulllib.cma"
-CAMLP4_NATIVE="$CAMLP4_COMMON \
- camlp4/Camlp4.cmx \
- camlp4/Camlp4Top.cmx \
- camlp4/camlp4prof.native$EXE \
- camlp4/mkcamlp4.native$EXE \
- camlp4/camlp4.native$EXE \
- camlp4/camlp4fulllib.cmxa"
-
-for i in camlp4boot camlp4r camlp4rf camlp4o camlp4of camlp4oof camlp4orf; do
- CAMLP4_BYTE="$CAMLP4_BYTE camlp4/$i.byte$EXE camlp4/$i.cma"
- CAMLP4_NATIVE="$CAMLP4_NATIVE camlp4/$i.native$EXE"
-done
-
-cd camlp4
-for dir in Camlp4Parsers Camlp4Printers Camlp4Filters; do
- for file in $dir/*.ml; do
- base=camlp4/$dir/`basename $file .ml`
- CAMLP4_BYTE="$CAMLP4_BYTE $base.cmo"
- CAMLP4_NATIVE="$CAMLP4_NATIVE $base.cmx $base.$O"
- done
-done
-cd ..
diff --git a/build/distclean.sh b/build/distclean.sh
deleted file mode 100755
index 6e978eeccc..0000000000
--- a/build/distclean.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-cd `dirname $0`/..
-set -ex
-(cd byterun && make clean) || :
-(cd asmrun && make clean) || :
-(cd yacc && make clean) || :
-rm -f build/ocamlbuild_mixed_mode
-rm -rf _build
-rm -f boot/ocamlrun boot/ocamlrun.exe boot/camlheader \
- boot/myocamlbuild boot/myocamlbuild.native boot/myocamlbuild.native.exe \
- myocamlbuild_config.ml config/config.sh config/Makefile \
- boot/ocamlyacc tools/cvt_emit.bak tools/*.bak \
- config/s.h config/m.h boot/*.cm* _log _*_log*
-
-# from partial boot
-rm -f driver/main.byte driver/optmain.byte lex/main.byte \
- tools/ocamlmklib.byte \
- tools/myocamlbuild_config.ml
-
-# from ocamlbuild bootstrap
-rm -f ocamlbuild/_log ocamlbuild/,ocamlbuild.byte.start \
- ocamlbuild/boot/ocamlbuild ocamlbuild/myocamlbuild_config.ml \
- ocamlbuild/myocamlbuild_config.mli
-rm -rf ocamlbuild/_build ocamlbuild/_start
diff --git a/build/fastworld.sh b/build/fastworld.sh
deleted file mode 100755
index b9fa1248f1..0000000000
--- a/build/fastworld.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-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
-./mk_shell_and_ocamlbuild_config.sh
-./boot-c-parts.sh
-./boot.sh $@
-
-cd ..
-. build/targets.sh
-OCAMLMKLIB_BYTE="tools/ocamlmklib.byte"
-set -x
-$OCAMLBUILD $@ -log _boot_fast_log \
- $STDLIB_BYTE $OCAMLOPT_BYTE $STDLIB_NATIVE \
- $OCAMLOPT_NATIVE $OCAMLMKLIB_BYTE $OTHERLIBS_UNIX_NATIVE $OCAMLBUILD_NATIVE
-
-rm -f _build/myocamlbuild
-boot/ocamlrun boot/myocamlbuild \
- -just-plugin -install-lib-dir _build/ocamlbuild \
- -ocamlopt "../_build/ocamlopt.opt -nostdlib -I boot -I stdlib -I $UNIXDIR"
-cp _build/myocamlbuild boot/myocamlbuild.native
-
-./boot/myocamlbuild.native $@ \
- $OCAMLC_NATIVE $TOPLEVEL $OTHERLIBS_BYTE $OTHERLIBS_NATIVE $OCAMLLEX_BYTE \
- $OCAMLLEX_NATIVE $TOOLS_BYTE $TOOLS_NATIVE $DEBUGGER \
- $OCAMLDOC_BYTE $OCAMLDOC_NATIVE $OCAMLBUILD_BYTE
-
-cd tools
-make objinfo_helper
-cd ..
diff --git a/build/install.sh b/build/install.sh
deleted file mode 100755
index de2802e708..0000000000
--- a/build/install.sh
+++ /dev/null
@@ -1,475 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-set -e
-
-cd `dirname $0`/..
-
-. config/config.sh
-
-not_installed=$PWD/_build/not_installed
-
-rm -f "$not_installed"
-touch "$not_installed"
-
-wontinstall() {
- echo "$1" >> "$not_installed"
- echo " don't install $1"
-}
-
-installbin() {
- if [ -f "$1" ]; then
- echo " install binary $2"
- cp -f "$1" "$2"
- [ -x "$2" ] || chmod +x "$2"
- else
- wontinstall "$1"
- fi
-}
-
-installbestbin() {
- if [ -f "$1" ]; then
- echo " install binary $3 (with `basename $1`)"
- cp -f "$1" "$3"
- else
- if [ -f "$2" ]; then
- echo " install binary $3 (with `basename $2`)"
- cp -f "$2" "$3"
- else
- echo "None of $1, $2 exists"
- exit 3
- fi
- fi
- [ -x "$3" ] || chmod +x "$3"
-}
-
-installlib() {
- if [ -f "$1" ]; then
- dest="$2/`basename $1`"
- echo " install library $dest"
- cp -f "$1" "$2"
- if [ "$RANLIB" != "" ]; then
- "$RANLIB" "$dest"
- fi
- else
- wontinstall "$1"
- fi
-}
-
-installdir() {
- args=""
- while [ $# -gt 1 ]; do
- if [ -f "$1" ]; then
- args="$args $1"
- else
- wontinstall "$1"
- fi
- shift
- done
- last="$1"
- for file in $args; do
- echo " install $last/`basename $file`"
- cp -f "$file" "$last"
- done
-}
-
-installlibdir() {
- args=""
- while [ $# -gt 1 ]; do
- args="$args $1"
- shift
- done
- last="$1"
- for file in $args; do
- installlib "$file" "$last"
- done
-}
-
-mkdir -p $BINDIR
-mkdir -p $LIBDIR
-mkdir -p $LIBDIR/caml
-mkdir -p $LIBDIR/vmthreads
-mkdir -p $LIBDIR/threads
-mkdir -p $LIBDIR/ocamlbuild
-mkdir -p $LIBDIR/ocamldoc
-mkdir -p $LIBDIR/ocamldoc/custom
-mkdir -p $STUBLIBDIR
-mkdir -p $MANDIR/man1
-mkdir -p $MANDIR/man3
-mkdir -p $MANDIR/man$MANEXT
-
-echo "Installing core libraries..."
-installlibdir byterun/libcamlrun.$A asmrun/libasmrun.$A asmrun/libasmrunp.$A \
- $LIBDIR
-installdir byterun/libcamlrun_shared$EXT_DLL $LIBDIR
-
-PUBLIC_INCLUDES="\
- alloc.h callback.h config.h custom.h fail.h intext.h \
- memory.h misc.h mlvalues.h printexc.h signals.h compatibility.h"
-
-cd byterun
-for i in $PUBLIC_INCLUDES; do
- echo " install caml/$i"
- sed -f ../tools/cleanup-header $i > $LIBDIR/caml/$i
-done
-cd ..
-
-WIN32=""
-if [ "x$EXE" = "x.exe" ]; then
- installbin win32caml/ocamlwin.exe $PREFIX/OCamlWin.exe
- WIN32=win32
-fi
-
-installdir otherlibs/"$WIN32"unix/unixsupport.h \
- otherlibs/bigarray/bigarray.h \
- $LIBDIR/caml
-
-installdir yacc/ocamlyacc$EXE byterun/ocamlrun$EXE $BINDIR
-
-installdir config/Makefile $LIBDIR/Makefile.config
-installdir byterun/ld.conf $LIBDIR
-
-cd _build
-
-echo "Installing the toplevel and compilers..."
-installbin ocaml$EXE $BINDIR/ocaml$EXE
-installbin ocamlc$EXE $BINDIR/ocamlc$EXE
-installbin ocamlopt$EXE $BINDIR/ocamlopt$EXE
-installbin ocamlc.opt$EXE $BINDIR/ocamlc.opt$EXE
-installbin ocamlopt.opt$EXE $BINDIR/ocamlopt.opt$EXE
-
-set=set # coloration workaround
-
-echo "Installing the standard library..."
-installdir \
- stdlib/stdlib.cma \
- stdlib/stdlib.cmxa stdlib/stdlib.p.cmxa \
- stdlib/camlheader \
- stdlib/camlheader_ur \
- stdlib/std_exit.cm[io] stdlib/std_exit.ml \
- stdlib/arg.cmi stdlib/arg.ml stdlib/arg.mli \
- stdlib/array.cmi stdlib/array.ml stdlib/array.mli \
- stdlib/arrayLabels.cmi stdlib/arrayLabels.ml stdlib/arrayLabels.mli \
- stdlib/buffer.cmi stdlib/buffer.ml stdlib/buffer.mli \
- stdlib/callback.cmi stdlib/callback.ml stdlib/callback.mli \
- stdlib/camlinternalLazy.cmi stdlib/camlinternalLazy.ml stdlib/camlinternalLazy.mli \
- stdlib/camlinternalMod.cmi stdlib/camlinternalMod.ml stdlib/camlinternalMod.mli \
- stdlib/camlinternalOO.cmi stdlib/camlinternalOO.ml stdlib/camlinternalOO.mli \
- stdlib/char.cmi stdlib/char.ml stdlib/char.mli \
- stdlib/complex.cmi stdlib/complex.ml stdlib/complex.mli \
- stdlib/digest.cmi stdlib/digest.ml stdlib/digest.mli \
- stdlib/filename.cmi stdlib/filename.ml stdlib/filename.mli \
- stdlib/format.cmi stdlib/format.ml stdlib/format.mli \
- stdlib/gc.cmi stdlib/gc.ml stdlib/gc.mli \
- stdlib/genlex.cmi stdlib/genlex.ml stdlib/genlex.mli \
- stdlib/hashtbl.cmi stdlib/hashtbl.ml stdlib/hashtbl.mli \
- stdlib/int32.cmi stdlib/int32.ml stdlib/int32.mli \
- stdlib/int64.cmi stdlib/int64.ml stdlib/int64.mli \
- stdlib/lazy.cmi stdlib/lazy.ml stdlib/lazy.mli \
- stdlib/lexing.cmi stdlib/lexing.ml stdlib/lexing.mli \
- stdlib/list.cmi stdlib/list.ml stdlib/list.mli \
- stdlib/listLabels.cmi stdlib/listLabels.ml stdlib/listLabels.mli \
- stdlib/map.cmi stdlib/map.ml stdlib/map.mli \
- stdlib/marshal.cmi stdlib/marshal.ml stdlib/marshal.mli \
- stdlib/moreLabels.cmi stdlib/moreLabels.ml stdlib/moreLabels.mli \
- stdlib/nativeint.cmi stdlib/nativeint.ml stdlib/nativeint.mli \
- stdlib/obj.cmi stdlib/obj.ml stdlib/obj.mli \
- stdlib/oo.cmi stdlib/oo.ml stdlib/oo.mli \
- stdlib/parsing.cmi stdlib/parsing.ml stdlib/parsing.mli \
- stdlib/pervasives.cmi stdlib/pervasives.ml stdlib/pervasives.mli \
- stdlib/printexc.cmi stdlib/printexc.ml stdlib/printexc.mli \
- stdlib/printf.cmi stdlib/printf.ml stdlib/printf.mli \
- stdlib/queue.cmi stdlib/queue.ml stdlib/queue.mli \
- stdlib/random.cmi stdlib/random.ml stdlib/random.mli \
- stdlib/scanf.cmi stdlib/scanf.ml stdlib/scanf.mli \
- stdlib/sort.cmi stdlib/sort.ml stdlib/sort.mli \
- stdlib/stack.cmi stdlib/stack.ml stdlib/stack.mli \
- stdlib/stdLabels.cmi stdlib/stdLabels.ml stdlib/stdLabels.mli \
- stdlib/stream.cmi stdlib/stream.ml stdlib/stream.mli \
- stdlib/string.cmi stdlib/string.ml stdlib/string.mli \
- stdlib/stringLabels.cmi stdlib/stringLabels.ml stdlib/stringLabels.mli \
- stdlib/sys.cmi stdlib/sys.ml stdlib/sys.mli \
- stdlib/weak.cmi stdlib/weak.ml stdlib/weak.mli \
- stdlib/$set.cmi stdlib/$set.ml stdlib/$set.mli \
- stdlib/arg.cmx stdlib/arg.p.cmx \
- stdlib/array.cmx stdlib/array.p.cmx \
- stdlib/arrayLabels.cmx stdlib/arrayLabels.p.cmx \
- stdlib/buffer.cmx stdlib/buffer.p.cmx \
- stdlib/callback.cmx stdlib/callback.p.cmx \
- stdlib/camlinternalLazy.cmx stdlib/camlinternalLazy.p.cmx \
- stdlib/camlinternalMod.cmx stdlib/camlinternalMod.p.cmx \
- stdlib/camlinternalOO.cmx stdlib/camlinternalOO.p.cmx \
- stdlib/char.cmx stdlib/char.p.cmx \
- stdlib/complex.cmx stdlib/complex.p.cmx \
- stdlib/digest.cmx stdlib/digest.p.cmx \
- stdlib/filename.cmx stdlib/filename.p.cmx \
- stdlib/format.cmx stdlib/format.p.cmx \
- stdlib/gc.cmx stdlib/gc.p.cmx \
- stdlib/genlex.cmx stdlib/genlex.p.cmx \
- stdlib/hashtbl.cmx stdlib/hashtbl.p.cmx \
- stdlib/int32.cmx stdlib/int32.p.cmx \
- stdlib/int64.cmx stdlib/int64.p.cmx \
- stdlib/lazy.cmx stdlib/lazy.p.cmx \
- stdlib/lexing.cmx stdlib/lexing.p.cmx \
- stdlib/list.cmx stdlib/list.p.cmx \
- stdlib/listLabels.cmx stdlib/listLabels.p.cmx \
- stdlib/map.cmx stdlib/map.p.cmx \
- stdlib/marshal.cmx stdlib/marshal.p.cmx \
- stdlib/moreLabels.cmx stdlib/moreLabels.p.cmx \
- stdlib/nativeint.cmx stdlib/nativeint.p.cmx \
- stdlib/obj.cmx stdlib/obj.p.cmx \
- stdlib/oo.cmx stdlib/oo.p.cmx \
- stdlib/parsing.cmx stdlib/parsing.p.cmx \
- stdlib/pervasives.cmx stdlib/pervasives.p.cmx \
- stdlib/printexc.cmx stdlib/printexc.p.cmx \
- stdlib/printf.cmx stdlib/printf.p.cmx \
- stdlib/queue.cmx stdlib/queue.p.cmx \
- stdlib/random.cmx stdlib/random.p.cmx \
- stdlib/scanf.cmx stdlib/scanf.p.cmx \
- stdlib/sort.cmx stdlib/sort.p.cmx \
- stdlib/stack.cmx stdlib/stack.p.cmx \
- stdlib/stdLabels.cmx stdlib/stdLabels.p.cmx \
- stdlib/std_exit.cmx stdlib/std_exit.p.cmx stdlib/std_exit.$O stdlib/std_exit.p.$O \
- stdlib/stream.cmx stdlib/stream.p.cmx \
- stdlib/string.cmx stdlib/string.p.cmx \
- stdlib/stringLabels.cmx stdlib/stringLabels.p.cmx \
- stdlib/sys.cmx stdlib/sys.p.cmx \
- stdlib/weak.cmx stdlib/weak.p.cmx \
- stdlib/$set.cmx stdlib/$set.p.cmx \
- $LIBDIR
-
-installlibdir \
- stdlib/stdlib.$A stdlib/stdlib.p.$A \
- $LIBDIR
-
-echo "Installing ocamllex, ocamldebug..."
-installbin lex/ocamllex$EXE $BINDIR/ocamllex$EXE
-installbin debugger/ocamldebug$EXE $BINDIR/ocamldebug$EXE
-installbin lex/ocamllex.opt$EXE $BINDIR/ocamllex.opt$EXE
-installbin tools/ocamldep.native$EXE $BINDIR/ocamldep.opt$EXE
-
-echo "Installing some tools..."
-installbin tools/objinfo.byte$EXE $BINDIR/ocamlobjinfo$EXE
-installbin ../tools/objinfo_helper$EXE $LIBDIR/objinfo_helper$EXE
-installbin tools/ocamlcp.byte$EXE $BINDIR/ocamlcp$EXE
-installbin tools/ocamldep.byte$EXE $BINDIR/ocamldep$EXE
-installbin tools/ocamlmklib.byte$EXE $BINDIR/ocamlmklib$EXE
-installbin tools/ocamlmktop.byte$EXE $BINDIR/ocamlmktop$EXE
-installbin tools/ocamlprof.byte$EXE $BINDIR/ocamlprof$EXE
-installbin toplevel/expunge.byte$EXE $LIBDIR/expunge$EXE
-installbin tools/addlabels.byte $LIBDIR/addlabels
-installbin tools/scrapelabels.byte $LIBDIR/scrapelabels
-installbin otherlibs/dynlink/extract_crc.byte $LIBDIR/extract_crc
-
-echo "Installing libraries..."
-installdir \
- otherlibs/bigarray/bigarray.cma \
- otherlibs/dbm/dbm.cma \
- otherlibs/dynlink/dynlink.cma \
- otherlibs/"$WIN32"graph/graphics.cma \
- otherlibs/num/nums.cma \
- otherlibs/str/str.cma \
- otherlibs/"$WIN32"unix/unix.cma \
- otherlibs/bigarray/bigarray.cmxa \
- otherlibs/dbm/dbm.cmxa \
- otherlibs/dynlink/dynlink.cmxa \
- otherlibs/"$WIN32"graph/graphics.cmxa \
- otherlibs/num/nums.cmxa \
- otherlibs/str/str.cmxa \
- otherlibs/"$WIN32"unix/unix.cmxa \
- toplevel/toplevellib.cma \
- otherlibs/systhreads/thread.mli \
- otherlibs/systhreads/mutex.mli \
- otherlibs/systhreads/condition.mli \
- otherlibs/systhreads/event.mli \
- otherlibs/systhreads/threadUnix.mli \
- $LIBDIR
-
-installdir \
- otherlibs/systhreads/threads.cma \
- otherlibs/systhreads/threads.cmxa \
- otherlibs/systhreads/thread.cmi \
- otherlibs/systhreads/thread.cmx \
- otherlibs/systhreads/mutex.cmi \
- otherlibs/systhreads/mutex.cmx \
- otherlibs/systhreads/condition.cmi \
- otherlibs/systhreads/condition.cmx \
- otherlibs/systhreads/event.cmi \
- otherlibs/systhreads/event.cmx \
- otherlibs/systhreads/threadUnix.cmi \
- otherlibs/systhreads/threadUnix.cmx \
- $LIBDIR/threads
-
-installdir \
- otherlibs/bigarray/dllbigarray$EXT_DLL \
- otherlibs/dbm/dllmldbm$EXT_DLL \
- otherlibs/"$WIN32"graph/dllgraphics$EXT_DLL \
- otherlibs/num/dllnums$EXT_DLL \
- otherlibs/str/dllstr$EXT_DLL \
- otherlibs/systhreads/dllthreads$EXT_DLL \
- otherlibs/"$WIN32"unix/dllunix$EXT_DLL \
- otherlibs/threads/dllvmthreads$EXT_DLL \
- $STUBLIBDIR
-
-installlibdir \
- otherlibs/threads/libvmthreads.$A \
- $LIBDIR/vmthreads
-
-installdir \
- otherlibs/threads/thread.cmi \
- otherlibs/threads/thread.mli \
- otherlibs/threads/mutex.cmi \
- otherlibs/threads/mutex.mli \
- otherlibs/threads/condition.cmi \
- otherlibs/threads/condition.mli \
- otherlibs/threads/event.cmi \
- otherlibs/threads/event.mli \
- otherlibs/threads/threadUnix.cmi \
- otherlibs/threads/threadUnix.mli \
- otherlibs/threads/threads.cma \
- otherlibs/threads/stdlib.cma \
- otherlibs/threads/unix.cma \
- $LIBDIR/vmthreads
-
-installlibdir \
- otherlibs/bigarray/libbigarray.$A \
- otherlibs/dbm/libmldbm.$A \
- otherlibs/"$WIN32"graph/libgraphics.$A \
- otherlibs/num/libnums.$A \
- otherlibs/str/libstr.$A \
- otherlibs/systhreads/libthreads.$A \
- otherlibs/systhreads/libthreadsnat.$A \
- otherlibs/"$WIN32"unix/libunix.$A \
- $LIBDIR
-
-echo "Installing object files and interfaces..."
-installdir \
- tools/profiling.cm[oi] \
- toplevel/topstart.cmo \
- toplevel/toploop.cmi \
- toplevel/topdirs.cmi \
- toplevel/topmain.cmi \
- typing/outcometree.cmi \
- typing/outcometree.mli \
- otherlibs/graph/graphicsX11.cmi \
- otherlibs/graph/graphicsX11.mli \
- otherlibs/dynlink/dynlink.cmi \
- otherlibs/dynlink/dynlink.mli \
- otherlibs/num/arith_status.cmi \
- otherlibs/num/arith_status.mli \
- otherlibs/num/big_int.cmi \
- otherlibs/num/big_int.mli \
- otherlibs/num/nat.cmi \
- otherlibs/num/nat.mli \
- otherlibs/num/num.cmi \
- otherlibs/num/num.mli \
- otherlibs/num/ratio.cmi \
- otherlibs/num/ratio.mli \
- otherlibs/bigarray/bigarray.cmi \
- otherlibs/bigarray/bigarray.mli \
- otherlibs/dbm/dbm.cmi \
- otherlibs/dbm/dbm.mli \
- otherlibs/dynlink/dynlink.cmx \
- otherlibs/"$WIN32"graph/graphics.cmi \
- otherlibs/"$WIN32"graph/graphics.mli \
- otherlibs/str/str.cmi \
- otherlibs/str/str.mli \
- otherlibs/"$WIN32"unix/unix.cmi \
- otherlibs/"$WIN32"unix/unix.mli \
- otherlibs/"$WIN32"unix/unixLabels.cmi \
- otherlibs/"$WIN32"unix/unixLabels.mli \
- otherlibs/num/arith_flags.cmx \
- otherlibs/num/int_misc.cmx \
- otherlibs/num/arith_status.cmx \
- otherlibs/num/big_int.cmx \
- otherlibs/num/nat.cmx \
- otherlibs/num/num.cmx \
- otherlibs/num/ratio.cmx \
- otherlibs/bigarray/bigarray.cmx \
- otherlibs/dbm/dbm.cmx \
- otherlibs/"$WIN32"graph/graphics.cmx \
- otherlibs/graph/graphicsX11.cmx \
- otherlibs/str/str.cmx \
- otherlibs/"$WIN32"unix/unix.cmx \
- otherlibs/"$WIN32"unix/unixLabels.cmx \
- $LIBDIR
-
-installlibdir \
- otherlibs/bigarray/bigarray.$A \
- otherlibs/dbm/dbm.$A \
- otherlibs/dynlink/dynlink.$A \
- otherlibs/"$WIN32"graph/graphics.$A \
- otherlibs/num/nums.$A \
- otherlibs/str/str.$A \
- otherlibs/"$WIN32"unix/unix.$A \
- stdlib/stdlib.$A \
- $LIBDIR
-
-installlibdir \
- otherlibs/systhreads/threads.$A \
- $LIBDIR/threads
-
-echo "Installing manuals..."
-(cd ../man && make install)
-
-echo "Installing ocamldoc..."
-installbin ocamldoc/ocamldoc $BINDIR/ocamldoc$EXE
-installbin ocamldoc/ocamldoc.opt $BINDIR/ocamldoc.opt$EXE
-
-installdir \
- ../ocamldoc/ocamldoc.hva \
- ocamldoc/*.cmi \
- ocamldoc/odoc_info.mli ocamldoc/odoc_info.cm[ia] ocamldoc/odoc_info.cmxa \
- ocamldoc/odoc_info.$A \
- $LIBDIR/ocamldoc
-
-installdir \
- ocamldoc/stdlib_man/* \
- $MANDIR/man3
-
-echo "Installing ocamlbuild..."
-
-cd ocamlbuild
-installbin ocamlbuild.byte$EXE $BINDIR/ocamlbuild.byte$EXE
-installbin ocamlbuild.native$EXE $BINDIR/ocamlbuild.native$EXE
-installbestbin ocamlbuild.native$EXE ocamlbuild.byte$EXE $BINDIR/ocamlbuild$EXE
-
-installlibdir \
- ocamlbuildlib.$A \
- $LIBDIR/ocamlbuild
-
-installdir \
- ocamlbuildlib.cmxa \
- ocamlbuildlib.cma \
- ocamlbuild_plugin.cmi \
- ocamlbuild_plugin.cmo \
- ocamlbuild_plugin.cmx \
- ocamlbuild_pack.cmi \
- ocamlbuild_unix_plugin.cmi \
- ocamlbuild_unix_plugin.cmo \
- ocamlbuild_unix_plugin.cmx \
- ocamlbuild_unix_plugin.$O \
- ocamlbuild_executor.cmi \
- ocamlbuild_executor.cmo \
- ocamlbuild_executor.cmx \
- ocamlbuild_executor.$O \
- ocamlbuild.cmo \
- ocamlbuild.cmx \
- ocamlbuild.$O \
- $LIBDIR/ocamlbuild
-cd ..
-
-installdir \
- ../ocamlbuild/man/ocamlbuild.1 \
- $MANDIR/man1
diff --git a/build/mixed-boot.sh b/build/mixed-boot.sh
deleted file mode 100755
index 057b523332..0000000000
--- a/build/mixed-boot.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-set -ex
-cd `dirname $0`/..
-touch build/ocamlbuild_mixed_mode
-mkdir -p _build
-cp -rf boot _build/
-./build/mk_shell_and_ocamlbuild_config.sh
-./build/boot.sh
diff --git a/build/mk_shell_and_ocamlbuild_config.sh b/build/mk_shell_and_ocamlbuild_config.sh
deleted file mode 100755
index cdaf8e528e..0000000000
--- a/build/mk_shell_and_ocamlbuild_config.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh -eux
-
-# Generate config.sh and myocamlbuild_config.ml from config/Makefile.
-#
-# The approach is to create a new Makefile that "include" the config one and has
-# a single rule that prints the value of each variable config/Makefile.
-
-# Replace a variable name like "VAR" with [echo 'VAR="$(VAR)"; \\] for use in a
-# Makefile rule.
-print_value_shell='s/.*/ echo &="\\"$(&)\\""; \\/'
-
-# Replace a variable name like "VAR" with [echo 'let var = "$(VAR)";;'; \\] for
-# use in a Makefile rule.
-# It's fairly annoying to have to rely on tr but there is no portable way to
-# get the lowercase value of a variable in make.
-print_value_ocaml='s/.*/ echo let $$(echo & | tr "[:upper:]" "[:lower:]") = "\\"$(&)\\";;"; \\/'
-
-main() {
- # Command to run to output a line of code to set a variable to its value.
- local print_value="${1}"
-
- # List the variables in a Makefile except the ones that are commented out.
- local list_variables='/[^#].*=/ s/\([^ \t:=]\{1,\}\).*=.*$/\1/ p'
-
- # Variables we don't want to retrieve.
- local exclude='^#|\<CAML(C|OPT)_BIN\>|\<(MKLIB|SYSLIB|FLEXDIR|IFLEXDIR|^SET_LD_PATH)\>'
-
- # Some variables in the config have a value that is shell script and has to be
- # evaluated to make sense for the outputs.
- local eval_command='s/\\"\(.*\)\\"/\\"$$(\1)\\"/'
- local eval_commands_1='/CAMLC_BIN_CMD_TO_EVAL/ '"${eval_command}"
- local eval_commands_2='/CAMLOPT_BIN_CMD_TO_EVAL/ '"${eval_command}"
-
- printf "include Makefile\n\n"
- printf "p:\n\t@true; \\\\\n"
- sed -n "${list_variables}" Makefile \
- | grep -v -E "${exclude}" \
- | sed "${print_value}" \
- | sed -e "${eval_commands_1}" -e "${eval_commands_2}"
- printf "\ttrue\n\n"
- printf ".PHONY: p"
-}
-
-# Unset both MAKEFLAGS and MAKELEVEL which we inherit from the recursive make
-# calls in the build system. This prevents (gnu) make from printing the current
-# directory [ make[4]: Leaving directory `/foo/ocaml/config' ].
-unset MAKEFLAGS
-unset MAKELEVEL
-
-cd `dirname $0`/../config
-
-main "${print_value_shell}" > mkconfig.Makefile
-make -f mkconfig.Makefile > config.sh
-
-main "${print_value_ocaml}" > mkconfig.Makefile
-# The OCaml code expects bools instead of strings for true and false.
-make -f mkconfig.Makefile \
- | sed -e 's/"true"/true/' -e 's/"false"/false/' \
- > ../myocamlbuild_config.ml
-# ./configure outputs in config/Makefile some OCaml functions which we need;
-# they are commented out and preceded with '#ml '; since they depend on other
-# values, output them at the very end of the output.
-sed -n 's/^#ml // p' Makefile >> ../myocamlbuild_config.ml
-
-rm -f mkconfig.Makefile
diff --git a/build/mkruntimedef.sh b/build/mkruntimedef.sh
deleted file mode 100755
index a1bf141eda..0000000000
--- a/build/mkruntimedef.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-echo 'let builtin_exceptions = [|'; \
-sed -n -e 's|.*/\* \("[A-Za-z_]*"\) \*/$| \1;|p' byterun/fail.h | \
-sed -e '$s/;$//'; \
-echo '|]'; \
-echo 'let builtin_primitives = [|'; \
-sed -e 's/.*/ "&";/' -e '$s/;$//' byterun/primitives; \
-echo '|]'
diff --git a/build/myocamlbuild.sh b/build/myocamlbuild.sh
deleted file mode 100755
index 34ad894f9f..0000000000
--- a/build/myocamlbuild.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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. #
-# #
-#########################################################################
-
-cd `dirname $0`/..
-set -xe
-if [ ! -x _build/ocamlbuild/ocamlbuildlight.byte ]; then
- if [ ! -x ocamlbuild/_build/ocamlbuildlight.byte ]; then
- (cd ocamlbuild && ${GNUMAKE:-make})
- fi
- mkdir -p _build/ocamlbuild
- for i in "light.cmo" "light.byte" "lightlib.cma" "_plugin.cmi" "_pack.cmi"
- do
- cp ocamlbuild/_build/ocamlbuild$i _build/ocamlbuild
- done
-fi
-rm -f ocamlbuild/myocamlbuild_config.ml ocamlbuild/myocamlbuild_config.mli
-rm -rf _build/myocamlbuild boot/myocamlbuild boot/myocamlbuild.native
-./boot/ocamlrun _build/ocamlbuild/ocamlbuildlight.byte -no-hygiene \
- -tag debug -install-lib-dir _build/ocamlbuild -byte-plugin -just-plugin
-cp _build/myocamlbuild boot/myocamlbuild.boot
diff --git a/build/new-build-system b/build/new-build-system
deleted file mode 100644
index f76f07cebc..0000000000
--- a/build/new-build-system
+++ /dev/null
@@ -1,46 +0,0 @@
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-_tags # Defines tags to setup exceptions
-myocamlbuild.ml # Contains all needed rules that are differents
-boot/ocamldep
-myocamlbuild_config.mli
-utils/config.mlbuild # Should be renamed as utils/config.ml
-
-# Files that just contain module names of object files.
-**/*.mllib # Files that describe the contents of an OCaml library
-**/*.mlpack # Files that describe the contents of an OCaml package
-**/*.cilb # Files that describe the contents of an C static library
-**/*.dilb # Files that describe the contents of an C dynamic library
-
-build/
- world.sh # Build all the OCaml world
- world.byte.sh # Build the bytecode world
- world.native.sh # Build the native world
- world.all.sh # Build all the world the don't bootstrap
- fastworld.sh # Same as above but faster
- boot-c-parts.sh # Compile byterun, ocamlyacc and asmrun with the Makefiles
- boot.sh # Compile the stdlib and ocamlc
- otherlibs-targets.sh # Setup otherlibs targets
- targets.sh # All targets of the OCaml distribution
-
-
- install.sh # Install all needed files
- distclean.sh # Clean all generated files
-
- myocamlbuild.sh # Regenerate the boot/myocamlbuild program
- mk_shell_and_ocamlbuild_config.sh # Generate config/config.sh and myocamlbuild_config.ml
-
- # Partial stuffs
- mixed-boot.sh
- ocamlbuild-byte-only.sh
- ocamlbuild-native-only.sh
diff --git a/build/ocamlbuild-byte-only.sh b/build/ocamlbuild-byte-only.sh
deleted file mode 100755
index aeb5bcba9e..0000000000
--- a/build/ocamlbuild-byte-only.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ byte_stdlib_mixed_mode $OCAMLC_BYTE $OCAMLLEX_BYTE $OCAMLBUILD_BYTE
diff --git a/build/ocamlbuild-native-only.sh b/build/ocamlbuild-native-only.sh
deleted file mode 100755
index 4d7decfc03..0000000000
--- a/build/ocamlbuild-native-only.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ native_stdlib_mixed_mode $OCAMLOPT_BYTE $OCAMLLEX_BYTE $OCAMLBUILD_NATIVE
diff --git a/build/ocamlbuildlib-native-only.sh b/build/ocamlbuildlib-native-only.sh
deleted file mode 100755
index 285c561a04..0000000000
--- a/build/ocamlbuildlib-native-only.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ native_stdlib_mixed_mode $OCAMLOPT_BYTE $OCAMLLEX_BYTE $OCAMLBUILDLIB_NATIVE
diff --git a/build/otherlibs-targets.sh b/build/otherlibs-targets.sh
deleted file mode 100644
index 9b470c8430..0000000000
--- a/build/otherlibs-targets.sh
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-OTHERLIBS_BYTE=""
-OTHERLIBS_NATIVE=""
-OTHERLIBS_UNIX_NATIVE=""
-UNIXDIR="otherlibs/unix"
-
-add_native() {
- for native_file in $@; do
- OTHERLIBS_NATIVE="$OTHERLIBS_NATIVE otherlibs/$lib/$native_file"
- case $lib in
- unix|win32unix)
- OTHERLIBS_UNIX_NATIVE="$OTHERLIBS_UNIX_NATIVE otherlibs/$lib/$native_file";;
- esac
- done
-}
-
-add_byte() {
- for byte_file in $@; do
- OTHERLIBS_BYTE="$OTHERLIBS_BYTE otherlibs/$lib/$byte_file"
- done
-}
-
-add_file() {
- add_byte $@
- add_native $@
-}
-
-add_bin() {
- for bin_file in $@; do
- add_byte $bin_file.byte$EXE
- add_native $bin_file.native$EXE
- done
-}
-
-add_c_lib() {
- add_file "lib$1.$A"
-}
-
-add_ocaml_lib() {
- add_native "$1.cmxa"
- add_native "$1.$A"
- add_byte "$1.cma"
-}
-
-add_dll() {
- add_file "dll$1$EXT_DLL"
-}
-
-add() {
- add_c_lib $1
- add_ocaml_lib $1
- add_dll $1
-}
-
-THREADS_CMIS="thread.cmi mutex.cmi condition.cmi event.cmi threadUnix.cmi"
-
-for lib in $OTHERLIBRARIES; do
- case $lib in
- num)
- add nums;;
- systhreads)
- add_ocaml_lib threads
- add_dll threads
- add_file $THREADS_CMIS
- add_byte libthreads.$A
- add_native libthreadsnat.$A;;
- graph|win32graph)
- add graphics;;
- threads)
- add_byte pervasives.cmi pervasives.mli \
- $THREADS_CMIS marshal.cmi marshal.mli \
- stdlib.cma unix.cma threads.cma libvmthreads.$A;;
- dbm)
- add_ocaml_lib dbm
- add_c_lib mldbm;;
- dynlink)
- add_ocaml_lib dynlink
- add_native dynlink.cmx dynlink.$O
- add_file $lib.cmi extract_crc;;
- win32unix)
- UNIXDIR="otherlibs/win32unix"
- add_file unixsupport.h cst2constr.h socketaddr.h
- add unix;;
- unix)
- add_file unixsupport.h
- add unix;;
- *)
- add $lib
- esac
-done
diff --git a/build/partial-install.sh b/build/partial-install.sh
deleted file mode 100755
index 7af60188cc..0000000000
--- a/build/partial-install.sh
+++ /dev/null
@@ -1,159 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-######################################
-######### Copied from build/install.sh
-######################################
-
-set -e
-
-cd `dirname $0`/..
-
-# Save the following environment variables before sourcing config.sh since it
-# will overwrite them and the user might have set them to emulate $(DESTDIR)
-# which is unfortunately not supported.
-SAVED_BINDIR="${BINDIR}"
-SAVED_LIBDIR="${LIBDIR}"
-SAVED_MANDIR="${MANDIR}"
-
-. config/config.sh
-
-BINDIR="${SAVED_BINDIR:-${BINDIR}}"
-LIBDIR="${SAVED_LIBDIR:-${LIBDIR}}"
-MANDIR="${SAVED_MANDIR:-${MANDIR}}"
-
-not_installed=$PWD/_build/not_installed
-
-rm -f "$not_installed"
-mkdir -p "$PWD/_build"
-touch "$not_installed"
-
-wontinstall() {
- echo "$1" >> "$not_installed"
- echo " don't install $1"
-}
-
-installbin() {
- if [ -f "$1" ]; then
- echo " install binary $2"
- cp -f "$1" "$2"
- [ -x "$2" ] || chmod +x "$2"
- else
- wontinstall "$1"
- fi
-}
-
-installbestbin() {
- if [ -f "$1" ]; then
- echo " install binary $3 (with `basename $1`)"
- cp -f "$1" "$3"
- else
- if [ -f "$2" ]; then
- echo " install binary $3 (with `basename $2`)"
- cp -f "$2" "$3"
- else
- echo "None of $1, $2 exists"
- exit 3
- fi
- fi
- [ -x "$3" ] || chmod +x "$3"
-}
-
-installlib() {
- if [ -f "$1" ]; then
- dest="$2/`basename $1`"
- echo " install library $dest"
- cp -f "$1" "$2"
- if [ "$RANLIB" != "" ]; then
- "$RANLIB" "$dest"
- fi
- else
- wontinstall "$1"
- fi
-}
-
-installdir() {
- args=""
- while [ $# -gt 1 ]; do
- if [ -f "$1" ]; then
- args="$args $1"
- else
- wontinstall "$1"
- fi
- shift
- done
- last="$1"
- for file in $args; do
- echo " install $last/`basename $file`"
- cp -f "$file" "$last"
- done
-}
-
-installlibdir() {
- args=""
- while [ $# -gt 1 ]; do
- args="$args $1"
- shift
- done
- last="$1"
- for file in $args; do
- installlib "$file" "$last"
- done
-}
-
-mkdir -p $BINDIR
-mkdir -p $LIBDIR
-mkdir -p $LIBDIR/ocamlbuild
-mkdir -p $MANDIR/man1
-mkdir -p $MANDIR/man3
-
-cd _build
-
-if [ -n "${WITH_OCAMLBUILD}" ]; then
- echo "Installing ocamlbuild..."
- cd ocamlbuild
- installbin ocamlbuild.byte$EXE $BINDIR/ocamlbuild.byte$EXE
- installbin ocamlbuild.native$EXE $BINDIR/ocamlbuild.native$EXE
- installbestbin ocamlbuild.native$EXE ocamlbuild.byte$EXE \
- $BINDIR/ocamlbuild$EXE
-
- installlibdir \
- ocamlbuildlib.$A \
- $LIBDIR/ocamlbuild
-
- installdir \
- ocamlbuildlib.cmxa \
- ocamlbuildlib.cma \
- ocamlbuild_plugin.cmi \
- ocamlbuild_plugin.cmo \
- ocamlbuild_plugin.cmx \
- ocamlbuild_pack.cmi \
- ocamlbuild_unix_plugin.cmi \
- ocamlbuild_unix_plugin.cmo \
- ocamlbuild_unix_plugin.cmx \
- ocamlbuild_unix_plugin.$O \
- ocamlbuild_executor.cmi \
- ocamlbuild_executor.cmo \
- ocamlbuild_executor.cmx \
- ocamlbuild_executor.$O \
- ocamlbuild.cmo \
- ocamlbuild.cmx \
- ocamlbuild.$O \
- $LIBDIR/ocamlbuild
- cd ..
-
- installdir \
- ../ocamlbuild/man/ocamlbuild.1 \
- $MANDIR/man1
-fi
diff --git a/build/targets.sh b/build/targets.sh
deleted file mode 100644
index edc6c66bcd..0000000000
--- a/build/targets.sh
+++ /dev/null
@@ -1,63 +0,0 @@
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-. config/config.sh
-. build/otherlibs-targets.sh
-
-INSTALL_BIN="$BINDIR"
-export INSTALL_BIN
-
-STDLIB_BYTE="stdlib/libcamlrun.$A stdlib/stdlib.cma \
- stdlib/std_exit.cmo stdlib/camlheader stdlib/camlheader_ur"
-OCAMLLEX_BYTE=lex/ocamllex$EXE
-OCAMLC_BYTE=ocamlc$EXE
-OCAMLOPT_BYTE=ocamlopt$EXE
-OCAMLBUILD_BYTE="ocamlbuild/ocamlbuildlib.cma \
- ocamlbuild/ocamlbuildlightlib.cma \
- ocamlbuild/ocamlbuild.byte$EXE \
- ocamlbuild/ocamlbuildlight.byte$EXE"
-TOPLEVEL=ocaml$EXE
-TOOLS_BYTE="tools/objinfo.byte$EXE \
- tools/ocamldep.byte$EXE tools/profiling.cmo \
- tools/ocamlprof.byte$EXE tools/ocamlcp.byte$EXE \
- tools/ocamlmktop.byte$EXE tools/ocamlmklib$EXE \
- tools/scrapelabels.byte tools/addlabels.byte \
- tools/dumpobj.byte$EXE"
-if [ ! -z "$DEBUGGER" ]; then
- DEBUGGER=debugger/ocamldebug$EXE
-fi
-OCAMLDOC_BYTE="ocamldoc/ocamldoc$EXE ocamldoc/odoc_info.cma"
-STDLIB_NATIVE="stdlib/stdlib.cmxa stdlib/std_exit.cmx asmrun/libasmrun.$A"
-case $PROFILING in
-prof)
- STDLIB_NATIVE="$STDLIB_NATIVE asmrun/libasmrunp.$A \
- stdlib/stdlib.p.cmxa stdlib/std_exit.p.cmx";;
-noprof) ;;
-*) echo "unexpected PROFILING value $PROFILING"; exit 1;;
-esac
-OCAMLC_NATIVE=ocamlc.opt$EXE
-OCAMLOPT_NATIVE=ocamlopt.opt$EXE
-OCAMLLEX_NATIVE=lex/ocamllex.opt$EXE
-TOOLS_NATIVE=tools/ocamldep.native$EXE
-OCAMLDOC_NATIVE="ocamldoc/ocamldoc.opt$EXE ocamldoc/odoc_info.cmxa ocamldoc/stdlib_man/Pervasives.3o"
-OCAMLBUILDLIB_NATIVE="ocamlbuild/ocamlbuildlib.cmxa \
- ocamlbuild/ocamlbuildlightlib.cmxa"
-OCAMLBUILD_NATIVE="$OCAMLBUILDLIB_NATIVE \
- ocamlbuild/ocamlbuild.native$EXE \
- ocamlbuild/ocamlbuildlight.native$EXE"
-if [ -x boot/myocamlbuild.native ]; then
- OCAMLBUILD=./boot/myocamlbuild.native
-else
- OCAMLBUILD="./boot/ocamlrun boot/myocamlbuild"
-fi
-
-OCAMLBUILD="$OCAMLBUILD -no-ocamlfind"
diff --git a/build/world.all.sh b/build/world.all.sh
deleted file mode 100755
index dffd88ed1d..0000000000
--- a/build/world.all.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ \
- $STDLIB_BYTE $OCAMLC_BYTE $OCAMLLEX_BYTE $OCAMLOPT_BYTE $TOPLEVEL \
- $TOOLS_BYTE $OTHERLIBS_BYTE $OCAMLBUILD_BYTE $DEBUGGER $OCAMLDOC_BYTE \
- $STDLIB_NATIVE $OCAMLC_NATIVE $OCAMLOPT_NATIVE \
- $OCAMLLEX_NATIVE $TOOLS_NATIVE $OTHERLIBS_NATIVE \
- $OCAMLBUILD_NATIVE $OCAMLDOC_NATIVE
diff --git a/build/world.byte.sh b/build/world.byte.sh
deleted file mode 100755
index d66f0a809d..0000000000
--- a/build/world.byte.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ \
- $STDLIB_BYTE $OCAMLC_BYTE $OCAMLLEX_BYTE $OCAMLOPT_BYTE $TOPLEVEL $TOOLS_BYTE \
- $OTHERLIBS_BYTE $OCAMLBUILD_BYTE $DEBUGGER $OCAMLDOC_BYTE
diff --git a/build/world.native.sh b/build/world.native.sh
deleted file mode 100755
index 039cfbf3e5..0000000000
--- a/build/world.native.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# 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. #
-# #
-#########################################################################
-
-set -e
-cd `dirname $0`/..
-. build/targets.sh
-set -x
-$OCAMLBUILD $@ \
- $STDLIB_NATIVE $OCAMLC_NATIVE $OCAMLOPT_NATIVE \
- $OCAMLLEX_NATIVE $TOOLS_NATIVE $OTHERLIBS_NATIVE \
- $OCAMLBUILD_NATIVE $OCAMLDOC_NATIVE
diff --git a/build/world.sh b/build/world.sh
deleted file mode 100755
index 6475a9fca0..0000000000
--- a/build/world.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-#########################################################################
-# #
-# OCaml #
-# #
-# 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 Q Public License version 1.0. #
-# #
-#########################################################################
-
-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
-./mk_shell_and_ocamlbuild_config.sh
-./boot-c-parts.sh
-./boot.sh "$@"
-./world."$mode".sh "$@"