You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2008/03/11 18:10:20 UTC
svn commit: r636013 - /geronimo/gbuild/daily_build_scripts/samples.sh
Author: gawor
Date: Tue Mar 11 10:10:14 2008
New Revision: 636013
URL: http://svn.apache.org/viewvc?rev=636013&view=rev
Log:
minor fixes
Modified:
geronimo/gbuild/daily_build_scripts/samples.sh
Modified: geronimo/gbuild/daily_build_scripts/samples.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/samples.sh?rev=636013&r1=636012&r2=636013&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/samples.sh (original)
+++ geronimo/gbuild/daily_build_scripts/samples.sh Tue Mar 11 10:10:14 2008
@@ -26,6 +26,7 @@
SAMPLES_BRANCH=$1
MAIL_FILE=$TEST_DIR/$BRANCH_DIR/mail.txt
+MAIL_LOG=$TEST_DIR/$BRANCH_DIR/mail.sample.log
function send_mail() {
subject=$1
@@ -33,7 +34,7 @@
mail_ts=`date +%Y%m%d%H%M%S`
remote_mail_file=${REMOTE_HOME}/${mail_ts}.samples.log
- scp samples.log ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$remote_mail_file
+ scp $MAIL_LOG ${REMOTE_ACCOUNT}@${REMOTE_MACHINE}:$remote_mail_file
ssh ${REMOTE_ACCOUNT}@${REMOTE_MACHINE} "mail -s '$subject' $mailto < $remote_mail_file; rm -f $remote_mail_file"
}
@@ -51,7 +52,7 @@
then
echo "SVN checkout failed."
subject="[Samples $SAMPLES_BRANCH]: SVN checkout failed"
- echo "SVN checkout failed." > samples.log
+ echo "SVN checkout failed." > $MAIL_LOG
send_mail "$subject" "$ADMIN_ADDR"
exit
@@ -59,7 +60,7 @@
cd samples
samplesrev=`svn info | grep Revision | awk -F: '{print $2}'`
-samplesrev=${samplesev#* }
+samplesrev=${samplesrev#* }
echo "Samples at $samplesrev" >> $samplesLog
echo " " >> $samplesLog