Author: bayard
Date: Sat Nov 25 17:49:12 2006
New Revision: 479256
URL: http://svn.apache.org/viewvc?view=rev&rev=479256
Log:
Cleaned up - though the rsync is still not working
Modified:
jakarta/commons/proper/commons-nightly/trunk/people-wget.sh
Modified: 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=diff&rev=479256&r1=479255&r2=479256
==============================================================================
--- jakarta/commons/proper/commons-nightly/trunk/people-wget.sh (original)
+++ jakarta/commons/proper/commons-nightly/trunk/people-wget.sh Sat Nov 25
17:49:12 2006
@@ -5,20 +5,24 @@
#MAVEN_REPO='/www/people.apache.org/repo/m1-snapshot-repository'
#MAIL_TO='[email protected]'
+BUILD_URL='http://vmbuild.apache.org/~commons/nightly'
+TMP_DIR='/tmp/commons-night-tmp'
+
# TEST VERSIONS
BUILDS_DIR='/home/bayard/commons-nightly-test/nightly'
MAVEN_REPO='/home/bayard/commons-nightly-test/maven'
MAIL_TO='[EMAIL PROTECTED]'
-mkdir /tmp/commons-nightly-tmp
-cd /tmp/commons-nightly-tmp
+mkdir -p ${TMP_DIR}
+cd ${TMP_DIR}
# Calculate today's timestamp
time_stamp=`date +%Y%m%d`
+time_stamp='20061124'
builds_file="builds-${time_stamp}"
maven_file="maven-${time_stamp}"
-wget "http://vmbuild.apache.org/~commons/nightly/${builds_file}.tar" 2>
/dev/null
+wget "${BUILD_URL}/${builds_file}.tar" 2> /dev/null
if [ $? != 0 ]
then
mail -s "Failed to find ${builds_file}.tar" ${MAIL_TO}
@@ -29,20 +33,22 @@
# way things are done. I'd like to just rm -r and mv.
rsync -ar builds/* ${BUILDS_DIR}
- cd ..
- rm ${builds_file}.tar
+ rm ${TMP_DIR}/${builds_file}.tar
+ rm -r ${TMP_DIR}/builds/
fi
-wget "http://vmbuild.apache.org/~commons/nightly/${maven_file}.tar" 2>
/dev/null
+wget "${BUILD_URL}/${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
+ rm ${TMP_DIR}/${maven_file}.tar
+ rm -r ${TMP_DIR}/maven/
fi
+
+rmdir ${TMP_DIR}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]