OCamlPro/typerex — Issue #6: use ocp-env to set up ENV variables correctly
Author: samoht
Created: 2012-02-22 21:37:11+00:00
State: open

From D. Bünzli:

```
Basically ocp-env just acts like env(1) and set various variables in the environment before invoking the script/Makefile. E.g.

OCAMLBUILD="ocamlbuild -ocamlc ocp-ocamlc.opt -ocamlopt ocp-ocamlopt.opt"
OCAMLC=ocp-ocamlc.opt
CAMLC=ocp-ocamlc.opt
OCAMLOPT=ocp-ocamlopt.opt
CAMLOPT=ocp-ocamlopt.opt
This could be just a shell-script around env(1), by the way. Now instead of instructing your users to change their

Makefile/scripts just tell them to wrap their invocation with ocp-env.

Another suggestion is to include the wrapper ocp-ocamlbuild defined as suggested above in OCAMLBUILD.
```