2 # -*- coding: utf-8 -*-
4 # nacl_path.sh -- NaCl path export script
6 # Copyright (C) 2009-2011 Emmanuel Roullit <emmanuel@netsniff-ng.org>
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2 as
10 # published by the Free Software Foundation.
12 nacl_include_path
="$1"
15 if test -z $nacl_include_path ||
test -z $nacl_lib_path; then
16 echo "Please input the path where NaCl is like the following:"
17 echo "./$0.sh <include_path> <lib_path>"
21 echo "export NACL_INC_DIR=$nacl_include_path" >> ~
/.bashrc
22 echo "export NACL_LIB_DIR=$nacl_lib_path" >> ~
/.bashrc