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 @@ ...@@ -15,7 +15,7 @@
<charset>utf-8</charset> <charset>utf-8</charset>
<findlib path="/usr/lib/ocaml"/> <findlib path="_OCAML_STDLIBDIR_"/>
<extension findlib-package="ocsigenserver.ext.staticmod"/> <extension findlib-package="ocsigenserver.ext.staticmod"/>
......
...@@ -7,6 +7,7 @@ fi ...@@ -7,6 +7,7 @@ fi
BELENIOS_RUNDIR=${BELENIOS_RUNDIR:-_run} BELENIOS_RUNDIR=${BELENIOS_RUNDIR:-_run}
BELENIOS_TMPDIR=${BELENIOS_TMPDIR:-/tmp/belenios} BELENIOS_TMPDIR=${BELENIOS_TMPDIR:-/tmp/belenios}
OCAML_STDLIBDIR=$(ocamlc -where)
mkdir -p \ mkdir -p \
$BELENIOS_RUNDIR/etc \ $BELENIOS_RUNDIR/etc \
...@@ -16,6 +17,7 @@ mkdir -p \ ...@@ -16,6 +17,7 @@ mkdir -p \
$BELENIOS_TMPDIR/run $BELENIOS_TMPDIR/run
sed \ sed \
-e "s@_OCAML_STDLIBDIR_@$OCAML_STDLIBDIR@g" \
-e "s@_TMPDIR_@$BELENIOS_TMPDIR@g" \ -e "s@_TMPDIR_@$BELENIOS_TMPDIR@g" \
-e "s@_RUNDIR_@$BELENIOS_RUNDIR@g" \ -e "s@_RUNDIR_@$BELENIOS_RUNDIR@g" \
-e "s@_SRCDIR_@$PWD@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