Author: jfrederic.clere(a)jboss.com
Date: 2009-01-19 12:29:09 -0500 (Mon, 19 Jan 2009)
New Revision: 2175
Modified:
trunk/mod_cluster/test/java/installhttpd.sh
Log:
When BASEDIR is not found only download if the file doesn't exist.
(Allow to download and test old versions).
Modified: trunk/mod_cluster/test/java/installhttpd.sh
===================================================================
--- trunk/mod_cluster/test/java/installhttpd.sh 2009-01-19 15:08:06 UTC (rev 2174)
+++ trunk/mod_cluster/test/java/installhttpd.sh 2009-01-19 17:29:09 UTC (rev 2175)
@@ -108,8 +108,17 @@
#
http://hudson.qa.jboss.com/hudson/view/Native/job/mod_cluster-solaris-x86...
TARBALL=http://hudson.qa.jboss.com/hudson/view/Native/job/${BASE}/lastSuc...
BASELOC=`ant base | grep echo | sed 's:\[echo\]::' | sed 's:^ *::'`
-rm -f ${PACKAGE}-${BUILD_SYS}-${BUILD_CPU}.${EXT}
-wget ${TARBALL}
+if [ "x${BASELOC}" = "x" ]
+then
+ BASELOC=`pwd`
+ if [ ! -f ${PACKAGE}-${BUILD_SYS}-${BUILD_CPU}.${EXT} ]
+ then
+ wget ${TARBALL}
+ fi
+else
+ rm -f ${PACKAGE}-${BUILD_SYS}-${BUILD_CPU}.${EXT}
+ wget ${TARBALL}
+fi
TARBALL=`pwd`/${PACKAGE}-${BUILD_SYS}-${BUILD_CPU}.${EXT}
export BASELOC
echo "Base is: $BASELOC !!!"