From 989764067073997586d2d51352bc76cc73d754f7 Mon Sep 17 00:00:00 2001 From: wilson Date: Fri, 12 Sep 2014 16:21:21 +0800 Subject: 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 [tklauser: Reformated commit message] Signed-off-by: Tobias Klauser --- Misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc b/Misc index a56a0b1..4639280 100644 --- a/Misc +++ b/Misc @@ -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) -- cgit v1.2.3-54-g00ecf