Revision: 5786
          http://jnode.svn.sourceforge.net/jnode/?rev=5786&view=rev
Author:   lsantha
Date:     2011-02-20 13:34:37 +0000 (Sun, 20 Feb 2011)

Log Message:
-----------
Added support for starting the build with cron.

Added Paths:
-----------
    trunk/all/cron/
    trunk/all/cron/cron.sh
    trunk/all/cron/go.png
    trunk/all/cron/no.png
    trunk/all/cron/ok.png


Property changes on: trunk/all/cron
___________________________________________________________________
Added: svn:ignore
   + status.png

build.log


Added: trunk/all/cron/cron.sh
===================================================================
--- trunk/all/cron/cron.sh                              (rev 0)
+++ trunk/all/cron/cron.sh      2011-02-20 13:34:37 UTC (rev 5786)
@@ -0,0 +1,24 @@
+#Set JNODE_HOME
+#JNODE_HOME=
+
+if [ -z "${JNODE_HOME}" ]
+then
+echo "Please set JNODE_HOME before running this script."
+exit -1
+fi
+
+CRON_HOME=${JNODE_HOME}/all/cron
+BUILD_LOG=${CRON_HOME}/build.log
+
+cd ${JNODE_HOME}
+cp ${CRON_HOME}/go.png ${CRON_HOME}/status.png
+date &>${BUILD_LOG}
+svn up 1>>${BUILD_LOG} 2>&1
+./build.sh clean cd-x86-lite cd-x86_64-lite javadoc-small javadoc 
document-plugins 1>>${BUILD_LOG} 2>&1
+res=`grep "BUILD SUCCESSFUL" ${BUILD_LOG}`
+if [ -z "$res" ]
+then
+cp ${CRON_HOME}/no.png ${CRON_HOME}/status.png
+else
+cp ${CRON_HOME}/ok.png ${CRON_HOME}/status.png
+fi


Property changes on: trunk/all/cron/cron.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/all/cron/go.png
===================================================================
(Binary files differ)


Property changes on: trunk/all/cron/go.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/all/cron/no.png
===================================================================
(Binary files differ)


Property changes on: trunk/all/cron/no.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: trunk/all/cron/ok.png
===================================================================
(Binary files differ)


Property changes on: trunk/all/cron/ok.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to