Merge: `nit_dir` as a service
authorJean Privat <jean@pryen.org>
Wed, 23 Apr 2014 20:48:32 +0000 (16:48 -0400)
committerJean Privat <jean@pryen.org>
Wed, 23 Apr 2014 20:48:32 +0000 (16:48 -0400)
commitf17a953077971dc6f26700b7abebd7e69a998267
tree47f1167511eba5befbb5cebee62c186722c1f76b
parentebdf4adec292282315edddef0557749501d6424f
parent182b0e717fe47fa1c9cb2be5b01a5ec2f8e0cdff
Merge: `nit_dir` as a service

ToolContext exposes a `nit_dir` service that tools can use.
It is so good that, now, the `bin` directory can be directly put in the PATH on most system while `NIT_DIR` is unset.

Previous direct users of `NIT_DIR` are transformed to use the new service.
Also, `nitunit` uses the new service to find the compiler instead of a hard-coded path.

Closes #392
Closes #408

Pull-Request: #412
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>