Commit 24b0859f authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Parametrize sample configuration file over "ocamlc -where"

parent 6e671d26
......@@ -15,7 +15,7 @@
<charset>utf-8</charset>
<findlib path="/usr/lib/ocaml"/>
<findlib path="_OCAML_STDLIBDIR_"/>
<extension findlib-package="ocsigenserver.ext.staticmod"/>
......
......@@ -7,6 +7,7 @@ fi
BELENIOS_RUNDIR=${BELENIOS_RUNDIR:-_run}
BELENIOS_TMPDIR=${BELENIOS_TMPDIR:-/tmp/belenios}
OCAML_STDLIBDIR=$(ocamlc -where)
mkdir -p \
$BELENIOS_RUNDIR/etc \
......@@ -16,6 +17,7 @@ mkdir -p \
$BELENIOS_TMPDIR/run
sed \
-e "s@_OCAML_STDLIBDIR_@$OCAML_STDLIBDIR@g" \
-e "s@_TMPDIR_@$BELENIOS_TMPDIR@g" \
-e "s@_RUNDIR_@$BELENIOS_RUNDIR@g" \
-e "s@_SRCDIR_@$PWD@g" \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment