build: nacl: Propagate nacl specific environment variables to parent shell
commit989764067073997586d2d51352bc76cc73d754f7
authorwilson <wilson.wen.chn@gmail.com>
Fri, 12 Sep 2014 08:21:21 +0000 (12 16:21 +0800)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 18 Sep 2014 12:05:19 +0000 (18 14:05 +0200)
tree9b0dacd3681886b3f330769f6c04dfac96bfaa4d
parentef7737c5da9e770463a33d46316986cd37298e4a
build: nacl: Propagate nacl specific environment variables to parent shell

Use source command to execute the nacl_build.sh script in order to
change parent shell's environment variable needed to find the just built
libnacl.

wilson says:

> As I use "make nacl" to install nacl, the nacl_path.sh would be execute.
> Then NACL_INC_DIR env variable will be set and appended to ~/.bashrc. In
> nacl_build.sh, it used 'source' command to execute nacl_path.sh, however
> the NACL_INC_DIR variable only took effect in this script context, but
> not in the shell I was running.
> I think we need the 'source' command to execute nacl_build.sh so that we
> don't need to restart the shell for further installation.

Signed-off-by: wilson <wilson.wen.chn@gmail.com>
[tklauser: Reformated commit message]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Misc