You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by jm...@apache.org on 2005/09/22 21:35:30 UTC

svn commit: r291009 - /struts/current/nightly.sh

Author: jmitchell
Date: Thu Sep 22 12:35:27 2005
New Revision: 291009

URL: http://svn.apache.org/viewcvs?rev=291009&view=rev
Log:
add nightly script -- the actual file here is not the one executed, you'll have to ping me if you updatet this file

Added:
    struts/current/nightly.sh

Added: struts/current/nightly.sh
URL: http://svn.apache.org/viewcvs/struts/current/nightly.sh?rev=291009&view=auto
==============================================================================
--- struts/current/nightly.sh (added)
+++ struts/current/nightly.sh Thu Sep 22 12:35:27 2005
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+export SVN_DIR=/home/jmitchell/svn
+
+cd $SVN_DIR/STRUTS_1_2_BRANCH
+
+export TODAY=`date +%Y%m%d`
+export LOGFILE=$SVN_DIR/STRUTS_1_2_BRANCH/nightly-$TODAY.log
+export UPLOAD_DIR=$SVN_DIR/STRUTS_1_2_BRANCH/release/upload
+export TARGET_HOST=cvs.apache.org:/www/cvs.apache.org/builds/jakarta-struts/maven/
+export TARGET_1_2_URL=$TARGET_HOST/STRUTS_1_2_BRANCH/nightly
+export TARGET_1_3_URL=$TARGET_HOST/trunk/
+export NIGHTLIES=$SVN_DIR/struts/build/nightly
+
+ant clean-lib > $LOGFILE
+svn status >> $LOGFILE
+ant download-dependencies nightly >> $LOGFILE
+ant site >> $LOGFILE
+
+
+scp $UPLOAD_DIR/*bin* $TARGET_URL/binary >> $LOGFILE
+scp $UPLOAD_DIR/*lib* $TARGET_URL/lib >> $LOGFILE
+scp $UPLOAD_DIR/*src* $TARGET_URL/src >> $LOGFILE
+scp $LOGFILE $TARGET_URL/logs
+
+
+# TODO - build and deploy 1.2 web site
+
+# build and deploy 1.3.x
+cd $SVN_DIR/struts/build/ >> $LOGFILE
+maven nightly >> $LOGFILE
+
+scp -r $NIGHTLIES $TARGET_1_3_URL
+
+
+
+
+



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org