--- projects/cms/source/server/configure 2002/02/04 00:14:13 1.15.2.1 +++ projects/cms/source/server/configure 2004/08/01 10:40:37 1.25 @@ -4,13 +4,13 @@ # i-scream Distributed Centralised Monitoring System # Server configure script # -# $Id: configure,v 1.15.2.1 2002/02/04 00:14:13 tdb Exp $ +# $Id: configure,v 1.25 2004/08/01 10:40:37 tdb Exp $ # ## Config # HTTP Server. This is the source of all downloads. -HTTPSERVER="http://www.i-scream.org.uk/downloads/lib/" +HTTPSERVER="http://www.i-scream.org/pub/i-scream/cms/lib/" # This script uses wget, set it's path and parameters here WGETPARAM="-nv" @@ -32,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.11-bin.jar pircbot.jar" +LIBRARIES="crimson.jar idl.jar jacorb.jar jaxp.jar pircbot.jar iscream_util.jar" for LIB in ${LIBRARIES}; do @@ -45,15 +45,37 @@ for LIB in ${LIBRARIES}; do done -## Check for jacorb properties file +## Cache javadoc API package-list files +echo "> Caching remote API's" -echo "> Checking for jacorb.properties" -cd ${HOME} -if test -r "jacorb.properties"; then \ - echo " + jacorb.properties found"; \ +JDKURL="http://java.sun.com/j2se/1.4.2/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 " - jacorb.properties not found, fetching from ${HTTPSERVER}jacorb.properties"; \ - ${WGET} ${HTTPSERVER}jacorb.properties; \ + 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/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