--- projects/cms/source/conient/configure 2001/11/25 19:46:35 1.7 +++ projects/cms/source/conient/configure 2004/03/21 19:24:12 1.13 @@ -4,13 +4,13 @@ # i-scream Distributed Centralised Monitoring System # Conient configure script # -# $Id: configure,v 1.7 2001/11/25 19:46:35 tdb Exp $ +# $Id: configure,v 1.13 2004/03/21 19:24:12 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 jaxp.jar iscream-util.jar" +LIBRARIES="crimson.jar jaxp.jar iscream_util.jar" for LIB in ${LIBRARIES}; do @@ -40,10 +40,33 @@ for LIB in ${LIBRARIES}; do echo " + ${LIB} found"; \ else \ echo " - ${LIB} not found, fetching from ${HTTPSERVER}${LIB}"; \ - ${WGET} ${HTTPSERVER}${LIB}; \ + ${WGET} -nv ${HTTPSERVER}${LIB}; \ fi done + +## Cache javadoc API package-list files +echo "> Caching remote API's" + +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 " - jdk/package-list not found, fetching from ${JDKURL}package-list"; \ + ${WGET} ${JDKURL}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