1 |
tdb |
1.1 |
#!/bin/sh |
2 |
|
|
|
3 |
tdb |
1.3 |
# |
4 |
|
|
# i-scream Distributed Centralised Monitoring System |
5 |
|
|
# Conient configure script |
6 |
|
|
# |
7 |
tdb |
1.6 |
# $Id: configure,v 1.5 2001/03/14 23:24:40 tdb1 Exp $ |
8 |
tdb |
1.3 |
# |
9 |
|
|
|
10 |
|
|
## Config |
11 |
|
|
|
12 |
|
|
# HTTP Server. This is the source of all downloads. |
13 |
tdb |
1.6 |
HTTPSERVER="http://www.i-scream.org.uk/downloads/lib/" |
14 |
tdb |
1.1 |
|
15 |
tdb |
1.3 |
# This script uses wget, set it's path and parameters here |
16 |
|
|
WGETPARAM="-nv" |
17 |
|
|
WGET="/usr/local/bin/wget ${WGETPARAM}" |
18 |
|
|
|
19 |
|
|
# This should always be the same |
20 |
tdb |
1.4 |
SRCROOT=`pwd` |
21 |
tdb |
1.1 |
|
22 |
tdb |
1.3 |
## Library check |
23 |
|
|
|
24 |
|
|
echo "> Checking for required libraries" |
25 |
tdb |
1.1 |
cd build/lib |
26 |
|
|
|
27 |
tdb |
1.3 |
LIBRARIES="crimson.jar jaxp.jar iscream-util.jar" |
28 |
|
|
|
29 |
|
|
for LIB in ${LIBRARIES}; do |
30 |
|
|
|
31 |
|
|
if test -r "${LIB}"; then \ |
32 |
|
|
echo " + ${LIB} found"; \ |
33 |
|
|
else \ |
34 |
|
|
echo " - ${LIB} not found, fetching from ${HTTPSERVER}${LIB}"; \ |
35 |
tdb |
1.5 |
${WGET} ${HTTPSERVER}${LIB}; \ |
36 |
tdb |
1.3 |
fi |
37 |
|
|
|
38 |
|
|
done |
39 |
|
|
|
40 |
|
|
## Write out the include file for the Makefile's |
41 |
|
|
|
42 |
|
|
echo "> Generating Makefile includes" |
43 |
|
|
echo " + writing root of source tree" |
44 |
tdb |
1.4 |
echo "SOURCEROOT=${SRCROOT}" > ${SRCROOT}/Config.inc |
45 |
tdb |
1.3 |
echo " + writing include" |
46 |
tdb |
1.4 |
echo "include \$(SOURCEROOT)/Config2.inc" >> ${SRCROOT}/Config.inc |
47 |
tdb |
1.3 |
|
48 |
|
|
echo "> Configure Completed" |
49 |
tdb |
1.1 |
|
50 |
tdb |
1.3 |
## End |