Skip to content

Commit

Permalink
[fix] install, package: renamed install_dir into libdir + related fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Ye authored and BourgerieQuentin committed Jun 29, 2012
1 parent 6f7ac84 commit 66ff782
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions config.mli
Expand Up @@ -19,11 +19,11 @@
The .ml file is generated by the ./configure script
*)

(** the installation prefix (also known as MLSTATELIBS from many places *)
(** the installation prefix (also known as MLSTATELIBS from many places) *)
val prefix : string

(** the installation directory (also known as MLSTATELIBS from many places *)
val install_dir : string
(** the installation library directory *)
val lib_dir : string

(** the base directory of external ocaml libraries *)
val ocamllib : string
Expand Down
10 changes: 5 additions & 5 deletions configure
Expand Up @@ -35,10 +35,10 @@ while [ $# -gt 0 ]; do
shift
PREFIX=$1
;;
-install-dir)
-libdir)
if [ $# -lt 2 ]; then echo "Error: option $1 requires an argument" >&2; exit 1; fi
shift
INSTALL_DIR=$1
LIBDIR=$1
;;
-release)
IS_RELEASE=1
Expand Down Expand Up @@ -91,7 +91,7 @@ done
: ${PREFIX:=${MLSTATELIBS:-}}
: ${PREFIX:=/usr/local}
: ${IS_RELEASE:=}
: ${INSTALL_DIR:=$PREFIX}
: ${LIBDIR:=$PREFIX}

CONFIG_LOG=$PWD/config.log

Expand Down Expand Up @@ -714,7 +714,7 @@ done
# See config.mli for the documentation and spec of these variables
cat >config.ml <<EOF
let prefix = "$PREFIX"
let install_dir = "$INSTALL_DIR"
let lib_dir = "$LIBDIR"
let ocamllib = "$OCAMLLIB"
let ocamlopt = "$OCAMLOPT"
let ocamlbuild = "$OCAMLBUILD"
Expand Down Expand Up @@ -763,7 +763,7 @@ EOF

cat >config.sh <<EOF
PREFIX="$PREFIX"
INSTALL_DIR="$INSTALL_DIR"
LIBDIR="$LIBDIR"
OCAMLLIB="$OCAMLLIB"
OCAMLOPT="$OCAMLOPT"
OCAMLBUILD="$OCAMLBUILD"
Expand Down
2 changes: 1 addition & 1 deletion install_release.sh
Expand Up @@ -207,7 +207,7 @@ SRCDIR=$OPAGENERAL
OPABOOK=$OPAGENERAL/doc/book # the tutorial and book

# This is absolutely correct that the 2 variables are inversed, we should fix the value inside
./configure -prefix $INSTALLDIR -install-dir $PREFIX -ocamlopt $OCAMLOPT -release -no-dbm
./configure -prefix $INSTALLDIR -libdir $PREFIX -ocamlopt $OCAMLOPT -release -no-dbm


TARGETS="distrib"
Expand Down
2 changes: 1 addition & 1 deletion qml2js/qml2js.ml
Expand Up @@ -278,7 +278,7 @@ struct
/*usr/bin/env NODE_PATH=%s/lib/node_modules:$NODE_PATH node \"$0\" \"$@\"; exit $?;*/
" Config.install_dir;
" Config.lib_dir;
linking_generation_js_init generated_files env_js_input oc;
let read_append opx =
Printf.fprintf oc "///////////////////////\n";
Expand Down

0 comments on commit 66ff782

Please sign in to comment.