Skip to content

Commit

Permalink
build: nacl: Propagate nacl specific environment variables to parent …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
[tklauser: Reformated commit message]
Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
wilsonwen authored and tklauser committed Sep 18, 2014
1 parent ef7737c commit 9897640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Misc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
nacl:
$(Q)echo "$(bold)$(WHAT) $@:$(normal)"
$(Q)cd curvetun/ && ./nacl_build.sh ~/nacl
$(Q)cd curvetun/ && source ./nacl_build.sh ~/nacl
$(Q)source ~/.bashrc

tarball.gz: ; $(call GIT_ARCHIVE,gzip,gz)
Expand Down

0 comments on commit 9897640

Please sign in to comment.