geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r725830 - /geronimo/gbuild/daily_build_scripts/gbuild.sh
Date Thu, 11 Dec 2008 22:02:46 GMT
Author: dwoods
Date: Thu Dec 11 14:02:45 2008
New Revision: 725830

URL: http://svn.apache.org/viewvc?rev=725830&view=rev
Log:
added svn revision logging

Modified:
    geronimo/gbuild/daily_build_scripts/gbuild.sh

Modified: geronimo/gbuild/daily_build_scripts/gbuild.sh
URL: http://svn.apache.org/viewvc/geronimo/gbuild/daily_build_scripts/gbuild.sh?rev=725830&r1=725829&r2=725830&view=diff
==============================================================================
--- geronimo/gbuild/daily_build_scripts/gbuild.sh (original)
+++ geronimo/gbuild/daily_build_scripts/gbuild.sh Thu Dec 11 14:02:45 2008
@@ -69,7 +69,8 @@
 
 ts=`date +%T | awk -F: '{print $1$2}'`
 log=$BASE_DIR/build-$ts.log
-mail=$BASE_DIR/mail-$ts.log
+mail=$BASE_DIR/mail.log
+svn=$BASE_DIR/svn.log
 echo "Using logfile=$log"
 echo "" > $log
 
@@ -134,10 +135,10 @@
 fi
 
 cd $BRANCH_DIR
-rev=`svn info | grep Revision`
-
-echo "Building Geronimo ${BRANCH} at $rev"
-echo "Building Geronimo ${BRANCH} at $rev" >> $log
+rev=`svn info | grep Revision | awk -F: '{print $2}'`
+echo "revision = $rev" > $svn
+echo "Building Geronimo ${BRANCH} at Revision: $rev"
+echo "Building Geronimo ${BRANCH} at Revision: $rev" >> $log
 echo " " >> $log
 java -version >> $log 2>&1
 echo " " >> $log
@@ -172,7 +173,7 @@
       subject="[BUILD] ${BRANCH}: Successful"
       mailto="scm@geronimo.apache.org"
    else
-      subject="[BUILD] ${BRANCH}: Failed for $rev"
+      subject="[BUILD] ${BRANCH}: Failed for Revision: $rev"
       mailto="dev@geronimo.apache.org"
    fi
 
@@ -184,10 +185,10 @@
 if [ "$SKIP_TESTS" = "true" ]
 then
   echo "Unit tests skiped"
-  echo "Geronimo $rev built with tests skipped" >> $mail
+  echo "Geronimo Revision: $rev built with tests skipped" >> $mail
 else
   echo "Unit tests included"
-  echo "Geronimo $rev built with tests included" >> $mail
+  echo "Geronimo Revision $rev built with tests included" >> $mail
 fi
 
 dir=`date +%F | awk -F- '{print $1$2$3}'`



Mime
View raw message