6 myself
=`echo "$0" | sed 's,.*/,,'`
15 echo >&2 "$myself: $@."
26 if [ ! -f lib
/system.h
]
28 if [ -f ..
/lib
/system.h
]
32 die
'Please call me from the NSCA-ng source directory'
36 install_dir
=`pwd`/lib
/confuse
37 tarball
="confuse-$version.tar.gz"
39 if [ ! -f "$tarball" ]
41 if type curl
>/dev
/null
2>&1
43 get
="curl -L -o $tarball"
44 elif type wget
>/dev
/null
2>&1
48 say
'Cannot find an HTTP client'
49 die
"Please download '$tarball' into `pwd`"
52 $get "http://download.savannah.gnu.org/releases/confuse/$tarball"
53 test -f "$tarball" || die
"Downloading '$tarball' failed"
56 gzip -c -d "$tarball" |
tar xf
-
57 cd `expr "$tarball" : '\(.*\)\.tar\.gz$'`
59 .
/configure
--prefix="$install_dir" --enable-static --disable-shared
65 # vim:set joinspaces noexpandtab textwidth=80: