rnd: Change parameter type in randombytes_{weak,strong}
[netsniff-ng.git] / curvetun / nacl_path.sh
blob9f492ba012286c4f3c71d713e5b0dfa52aaf2830
1 #!/bin/bash
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"
13 nacl_lib_path="$2"
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>"
18 exit 1
21 echo "export NACL_INC_DIR=$nacl_include_path" >> ~/.bashrc
22 echo "export NACL_LIB_DIR=$nacl_lib_path" >> ~/.bashrc