You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ba...@apache.org on 2006/11/22 08:45:06 UTC

svn commit: r478065 - /jakarta/commons/proper/commons-nightly/trunk/people-wget.sh

Author: bayard
Date: Tue Nov 21 23:45:06 2006
New Revision: 478065

URL: http://svn.apache.org/viewvc?view=rev&rev=478065
Log:
Script to pull nightly files over from vmbuild to people - not going into action quite yet, I want to make sure the nightly build is doing the right thing

Added:
    jakarta/commons/proper/commons-nightly/trunk/people-wget.sh   (with props)

Added: jakarta/commons/proper/commons-nightly/trunk/people-wget.sh
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/commons-nightly/trunk/people-wget.sh?view=auto&rev=478065
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/people-wget.sh (added)
+++ jakarta/commons/proper/commons-nightly/trunk/people-wget.sh Tue Nov 21 23:45:06 2006
@@ -0,0 +1,48 @@
+# A script to pull the builds over from vmbuild and onto their 
+# centralized locations on people - both zip/tar and jars. 
+
+#BUILDS_DIR='/www/people.apache.org/builds/jakarta-commons/nightly'
+#MAVEN_REPO='/www/people.apache.org/repo/m1-snapshot-repository'
+#MAIL_TO='commons-dev@jakarta.apache.org'
+
+# TEST VERSIONS
+BUILDS_DIR='/home/bayard/commons-nightly-test/nightly'
+MAVEN_REPO='/home/bayard/commons-nightly-test/maven'
+MAIL_TO='bayard@apache.org'
+
+mkdir /tmp/commons-nightly-tmp
+cd /tmp/commons-nightly-tmp
+
+# Calculate today's timestamp
+time_stamp=`date +%Y%m%d`
+builds_file="builds-${time_stamp}"
+maven_file="maven-${time_stamp}"
+
+wget "http://vmbuild.apache.org/~commons/nightly/${builds_file}.tar" 2> /dev/null
+if [ $? != 0 ]
+then
+    mail -s "Failed to find ${builds_file}.tar" ${MAIL_TO}
+else
+    tar -zxf ${builds_file}.tar
+
+    # deploy onto BUILDS_DIR somehow - use cp for now to mimic the current 
+    # way things are done. I'd like to just rm -r and mv.
+    rsync -ar builds/* ${BUILDS_DIR}
+
+    cd ..
+    rm ${builds_file}.tar
+fi
+
+wget "http://vmbuild.apache.org/~commons/nightly/${maven_file}.tar" 2> /dev/null
+if [ $? != 0 ]
+then
+    mail -s "Failed to find ${maven_file}.tar" ${MAIL_TO}
+else
+    tar -zxf ${maven_file}.tar
+    cd maven
+
+    # same as deploy comment above
+    rsync -ar maven/* ${MAVEN_DIR}
+
+    rm ${maven_file}.tar
+fi

Propchange: jakarta/commons/proper/commons-nightly/trunk/people-wget.sh
------------------------------------------------------------------------------
    svn:eol-style = native



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