ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/configure
(Generate patch)

Comparing projects/cms/source/server/configure (file contents):
Revision 1.6 by tdb, Tue Jan 30 11:47:22 2001 UTC vs.
Revision 1.10 by tdb, Wed Mar 14 22:15:10 2001 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines