--- projects/cms/source/server/configure 2001/03/14 23:24:21 1.12 +++ projects/cms/source/server/configure 2003/02/11 22:38:29 1.20 @@ -4,17 +4,25 @@ # i-scream Distributed Centralised Monitoring System # Server configure script # -# $Id: configure,v 1.12 2001/03/14 23:24:21 tdb Exp $ +# $Id: configure,v 1.20 2003/02/11 22:38:29 tdb Exp $ # ## Config # HTTP Server. This is the source of all downloads. -HTTPSERVER="http://killigrew.ukc.ac.uk/" +HTTPSERVER="http://www.i-scream.org.uk/downloads/lib/" # This script uses wget, set it's path and parameters here WGETPARAM="-nv" -WGET="/usr/local/bin/wget ${WGETPARAM}" +if test -x /usr/bin/wget; then + WGET="/usr/bin/wget ${WGETPARAM}" +else + if test -x /usr/local/bin/wget; then + WGET="/usr/local/bin/wget ${WGETPARAM}" + else + WGET="wget ${WGETPARAM}"; + fi +fi # This should always be the same SRCROOT=`pwd` @@ -24,7 +32,7 @@ SRCROOT=`pwd` echo "> Checking for required libraries" cd build/lib -LIBRARIES="crimson.jar idl.jar jacorb.jar jaxp.jar mm.mysql-2.0.4-bin.jar" +LIBRARIES="crimson.jar idl.jar jacorb.jar jaxp.jar mm.mysql-2.0.11-bin.jar pircbot.jar iscream_util.jar" for LIB in ${LIBRARIES}; do @@ -46,6 +54,39 @@ if test -r "jacorb.properties"; then \ else \ echo " - jacorb.properties not found, fetching from ${HTTPSERVER}jacorb.properties"; \ ${WGET} ${HTTPSERVER}jacorb.properties; \ +fi + +## Cache javadoc API package-list files +echo "> Caching remote API's" + +JDKURL="http://java.sun.com/j2se/1.4.1/docs/api/" +mkdir -p ${SRCROOT}/.api-cache/jdk +cd ${SRCROOT}/.api-cache/jdk +if test -r "package-list"; then \ + echo " + jdk/package-list found"; \ +else \ + echo " - jdk/package-list not found, fetching from ${JDKURL}package-list"; \ + ${WGET} ${JDKURL}package-list; \ +fi + +PIRCBOTURL="http://www.jibble.org/javadocs/pircbot/" +mkdir -p ${SRCROOT}/.api-cache/pircbot +cd ${SRCROOT}/.api-cache/pircbot +if test -r "package-list"; then \ + echo " + pircbot/package-list found"; \ +else \ + echo " - pircbot/package-list not found, fetching from ${PIRCBOTURL}package-list"; \ + ${WGET} ${PIRCBOTURL}package-list; \ +fi + +UTILURL="http://www.i-scream.org.uk/javadoc/util/" +mkdir -p ${SRCROOT}/.api-cache/util +cd ${SRCROOT}/.api-cache/util +if test -r "package-list"; then \ + echo " + util/package-list found"; \ +else \ + echo " - util/package-list not found, fetching from ${UTILURL}package-list"; \ + ${WGET} ${UTILURL}package-list; \ fi ## Write out the include file for the Makefile's