4 ######################################
5 ######### Copied from build/install.sh
6 ######################################
14 not_installed
=$PWD/_build
/not_installed
16 rm -f "$not_installed"
17 touch "$not_installed"
20 echo "$1" >> "$not_installed"
21 echo " don't install $1"
26 echo " install binary $2"
28 [ -x "$2" ] ||
chmod +x
"$2"
36 echo " install binary $3 (with `basename $1`)"
40 echo " install binary $3 (with `basename $2`)"
43 echo "None of $1, $2 exists"
47 [ -x "$3" ] ||
chmod +x
"$3"
52 dest
="$2/`basename $1`"
53 echo " install library $dest"
55 if [ "$RANLIB" != "" ]; then
65 while [ $# -gt 1 ]; do
75 echo " install $last/`basename $file`"
82 while [ $# -gt 1 ]; do
88 installlib
"$file" "$last"
94 mkdir
-p $LIBDIR/camlp4
95 mkdir
-p $LIBDIR/ocamlbuild
99 mkdir
-p $MANDIR/man
$MANEXT
103 echo "Installing camlp4..."
104 installbin camlp
4/camlp4prof.byte
$EXE $BINDIR/camlp4prof
$EXE
105 installbin camlp
4/mkcamlp4.byte
$EXE $BINDIR/mkcamlp4
$EXE
106 installbin camlp
4/camlp4.byte
$EXE $BINDIR/camlp4
$EXE
107 installbin camlp
4/camlp4boot.byte
$EXE $BINDIR/camlp4boot
$EXE
108 installbin camlp
4/camlp4o.byte
$EXE $BINDIR/camlp4o
$EXE
109 installbin camlp
4/camlp4of.byte
$EXE $BINDIR/camlp4of
$EXE
110 installbin camlp
4/camlp4oof.byte
$EXE $BINDIR/camlp4oof
$EXE
111 installbin camlp
4/camlp4orf.byte
$EXE $BINDIR/camlp4orf
$EXE
112 installbin camlp
4/camlp4r.byte
$EXE $BINDIR/camlp4r
$EXE
113 installbin camlp
4/camlp4rf.byte
$EXE $BINDIR/camlp4rf
$EXE
114 installbin camlp
4/camlp4o.native
$EXE $BINDIR/camlp4o.opt
$EXE
115 installbin camlp
4/camlp4of.native
$EXE $BINDIR/camlp4of.opt
$EXE
116 installbin camlp
4/camlp4oof.native
$EXE $BINDIR/camlp4oof.opt
$EXE
117 installbin camlp
4/camlp4orf.native
$EXE $BINDIR/camlp4orf.opt
$EXE
118 installbin camlp
4/camlp4r.native
$EXE $BINDIR/camlp4r.opt
$EXE
119 installbin camlp
4/camlp4rf.native
$EXE $BINDIR/camlp4rf.opt
$EXE
122 CAMLP4DIR
=$LIBDIR/camlp4
123 for dir
in Camlp4Parsers Camlp4Printers Camlp4Filters Camlp4Top
; do
124 echo "Installing $dir..."
125 mkdir
-p $CAMLP4DIR/$dir
132 camlp4lib.cma camlp4lib.cmxa Camlp4.cmi \
133 camlp4fulllib.cma camlp4fulllib.cmxa \
134 camlp4o.cma camlp4of.cma camlp4oof.cma \
135 camlp4orf.cma camlp4r.cma camlp4rf.cma \
136 Camlp4Bin.cm
[iox
] Camlp4Bin.
$O Camlp4Top.cm
[io
] \
137 Camlp4_config.cmi camlp4prof.cm
[iox
] camlp4prof.
$O Camlp4_import.cmi \
139 installlibdir camlp4lib.
$A camlp4fulllib.
$A $CAMLP4DIR
142 echo "Installing ocamlbuild..."
144 installbin ocamlbuild.byte
$EXE $BINDIR/ocamlbuild.byte
$EXE
145 installbin ocamlbuild.native
$EXE $BINDIR/ocamlbuild.native
$EXE
146 installbestbin ocamlbuild.native
$EXE ocamlbuild.byte
$EXE $BINDIR/ocamlbuild
$EXE
155 ocamlbuild_plugin.cmi \
156 ocamlbuild_pack.cmi \
157 ocamlbuild_unix_plugin.cmi \
158 ocamlbuild_unix_plugin.cmo \
159 ocamlbuild_unix_plugin.cmx \
160 ocamlbuild_unix_plugin.
$O \
161 ocamlbuild_executor.cmi \
162 ocamlbuild_executor.cmo \
163 ocamlbuild_executor.cmx \
164 ocamlbuild_executor.
$O \
172 ..
/ocamlbuild
/man
/ocamlbuild
.1 \