summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwilson <wilson.wen.chn@gmail.com>2014-09-12 16:21:21 +0800
committerTobias Klauser <tklauser@distanz.ch>2014-09-18 14:05:19 +0200
commit989764067073997586d2d51352bc76cc73d754f7 (patch)
tree9b0dacd3681886b3f330769f6c04dfac96bfaa4d
parentef7737c5da9e770463a33d46316986cd37298e4a (diff)
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>
-rw-r--r--Misc2
1 files changed, 1 insertions, 1 deletions
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)