3
# $Id: nsb-config,v 1.3 2002/09/10 19:05:24 rstory Exp $
4
# Author: Robert Story <rstory@freesnmp.com>
6
########################################################################
7
########################################################################
11
echo "Usage: $0 [-d|-x] [-s SRCD]"
13
echo " -s SRCDIR : soure directory [$HOME/src/net-snmp-VERSION]"
15
echo " -x : configure extra features for pre-release testing"
16
echo " -d : configure for binary distribution"
24
# find nsb-platform based on te path to this script
26
EXE_PATH=${0%nsb-config}
27
EXE_PATH=${EXE_PATH%/}
28
if [ -f $EXE_PATH/nsb-functions ];then
29
source $EXE_PATH/nsb-functions
30
elif [ -f $HOME/bin/nsb-functions ]; then
31
source $HOME/bin/nsb-functions
32
elif [ -f nsb-functions ];then
35
echo "Cannot find nsb-functions in $EXE_PATH, $HOME/bin or $PWD"
40
########################################################################
41
########################################################################
45
while getopts ds:x opt
55
shift `expr $OPTIND - 1`
57
if [ $NSB_CONFIG_ALL -eq 2 ]; then
58
echo "You must specify -d or -x"
62
if [ -z "$SRCD" ]; then
63
for x in . $HOME/src/net-snmp
65
if [ -f $x/configure ]; then
70
if [ -z "$SRCD" ]; then
71
echo "Couldn't find a source directory. Please specify one for me."
77
########################################################################
78
########################################################################
79
if [ $NSB_CONFIG_ALL -eq 0 ];then