make: fix access to env vars
[netsniff-ng.git] / src / curvetun / nacl_path.sh
blob9a511a7c1159632d1f2e63267c10182fe9578898
1 #!/bin/sh
3 # netsniff-ng - the packet sniffing beast
4 # By Emmanuel Roullit <emmanuel@netsniff-ng.org>
5 # Copyright 2009, 2011 Emmanuel Roullit.
6 # Subject to the GPL, version 2.
8 nacl_include_path="$1"
9 nacl_lib_path="$2"
11 if test -z $nacl_include_path || test -z $nacl_lib_path; then
12 echo "Please input the path where NaCl is like the following:"
13 echo "./$0.sh <include_path> <lib_path>"
14 exit 1
17 export NACL_INC_DIR=$nacl_include_path
18 export NACL_LIB_DIR=$nacl_lib_path
20 echo "export NACL_INC_DIR=$nacl_include_path" >> ~/.bashrc
21 echo "export NACL_LIB_DIR=$nacl_lib_path" >> ~/.bashrc