1 |
tdb |
1.2 |
#!/bin/sh |
2 |
|
|
|
3 |
tdb |
1.9 |
# |
4 |
|
|
# i-scream Distributed Centralised Monitoring System |
5 |
|
|
# Server configure script |
6 |
|
|
# |
7 |
tdb |
1.11 |
# $Id: configure,v 1.10 2001/03/14 22:15:10 tdb1 Exp $ |
8 |
tdb |
1.9 |
# |
9 |
|
|
|
10 |
|
|
## Config |
11 |
|
|
|
12 |
|
|
# HTTP Server. This is the source of all downloads. |
13 |
tdb |
1.2 |
HTTPSERVER="http://killigrew.ukc.ac.uk/" |
14 |
|
|
|
15 |
tdb |
1.9 |
# This script uses wget, set it's path and parameters here |
16 |
|
|
WGETPARAM="-nv" |
17 |
|
|
WGET="/usr/local/bin/wget ${WGETPARAM}" |
18 |
tdb |
1.2 |
|
19 |
tdb |
1.9 |
# This should always be the same |
20 |
tdb |
1.11 |
SRCROOT=`pwd` |
21 |
tdb |
1.2 |
|
22 |
tdb |
1.9 |
## Library check |
23 |
tdb |
1.8 |
|
24 |
tdb |
1.9 |
echo "> Checking for required libraries" |
25 |
|
|
cd build/lib |
26 |
tdb |
1.2 |
|
27 |
tdb |
1.10 |
LIBRARIES="crimson.jar idl.jar jacorb.jar jaxp.jar mm.mysql-2.0.4-bin.jar" |
28 |
tdb |
1.2 |
|
29 |
tdb |
1.9 |
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 |
|
|
/usr/local/bin/wget -nv ${HTTPSERVER}${LIB}; \ |
36 |
|
|
fi |
37 |
|
|
|
38 |
|
|
done |
39 |
tdb |
1.2 |
|
40 |
tdb |
1.9 |
## Check for jacorb properties file |
41 |
tdb |
1.4 |
|
42 |
tdb |
1.9 |
echo "> Checking for jacorb.properties" |
43 |
tdb |
1.2 |
cd ${HOME} |
44 |
|
|
if test -r "jacorb.properties"; then \ |
45 |
tdb |
1.9 |
echo " + jacorb.properties found"; \ |
46 |
tdb |
1.2 |
else \ |
47 |
tdb |
1.9 |
echo " - jacorb.properties not found, fetching from ${HTTPSERVER}jacorb.properties"; \ |
48 |
tdb |
1.2 |
wget -nv ${HTTPSERVER}jacorb.properties; \ |
49 |
|
|
fi |
50 |
|
|
|
51 |
tdb |
1.9 |
## Write out the include file for the Makefile's |
52 |
|
|
|
53 |
|
|
echo "> Generating Makefile includes" |
54 |
|
|
echo " + writing root of source tree" |
55 |
tdb |
1.11 |
echo "SOURCEROOT=${SRCROOT}" > ${SRCROOT}/Config.inc |
56 |
tdb |
1.9 |
echo " + writing include" |
57 |
tdb |
1.11 |
echo "include \$(SOURCEROOT)/Config2.inc" >> ${SRCROOT}/Config.inc |
58 |
tdb |
1.9 |
|
59 |
|
|
echo "> Configure Completed" |
60 |
|
|
|
61 |
|
|
## End |