added script to drive the builds. updated others to accept parameters
authorJohn Kern <johnk@symbian.org>
Mon, 01 Feb 2010 12:06:14 -0800
changeset 65 6bec0231e8d2
parent 64 b8ed1f0fff05
child 67 fb430f25c33d
child 68 0f778d24a639
child 76 57613a26af19
added script to drive the builds. updated others to accept parameters
scripts/genBuildScripts.xml
scripts/runAnt.sh
scripts/runGen.sh
scripts/shepard.sh
--- a/scripts/genBuildScripts.xml	Fri Jan 29 17:50:10 2010 -0800
+++ b/scripts/genBuildScripts.xml	Mon Feb 01 12:06:14 2010 -0800
@@ -1,10 +1,10 @@
 <project >
- <property name="buildDirectory" 
-	location="/home/symbian/scratch/029/wrttools" />
- <property name="baseLocation" location="" /> 
+ <!-- WS_DIR is set in the associated shell scripts -->
+ <property environment="env"/>
+ <echo message="workspace: ${env.WS_DIR}"/>
  <eclipse.buildScript 
         elements="feature@org.symbian.tools.wrttools"
-        buildDirectory="${buildDirectory}"
+        buildDirectory="${env.WS_DIR}"
 	pluginPath="/usr/eclipse/JEE/eclipse/plugins"
  />
 </project>
--- a/scripts/runAnt.sh	Fri Jan 29 17:50:10 2010 -0800
+++ b/scripts/runAnt.sh	Mon Feb 01 12:06:14 2010 -0800
@@ -1,13 +1,16 @@
 #!/bin/sh
+
+set -x 
+
 PDE_ECLIPSE_DIR=/usr/eclipse
 PDE_VER=3.5.1.R35x_20090820
 EQUINOX_VER=1.0.201.R35x_v20090715
-WS_DIR=/home/symbian/scratch/029/wrttools
+WS_DIR=$1
 BUILD_CONF_DIR=${WS_DIR}/org.symbian.tools.wrttools.feature
 JAVA_CMD=/usr/java/jdk1.6.0_18/bin/java
 BUILD_FILE=${PDE_ECLIPSE_DIR}/plugins/org.eclipse.pde.build_${PDE_VER}/scripts/productBuild/productBuild.xml 
 SOURCE_LEVEL=1.5
 
 cd ${BUILD_CONF_DIR}
-${JAVA_CMD} -jar -source ${SOURCE_LEVEL} -target ${SOURCE_LEVEL} ${PDE_ECLIPSE_DIR}/plugins/org.eclipse.equinox.launcher_${EQUINOX_VER}.jar -application org.eclipse.ant.core.antRunner -buildfile build.xml
+${JAVA_CMD} -Dsource=${SOURCE_LEVEL} -Dtarget=${SOURCE_LEVEL}  -jar ${PDE_ECLIPSE_DIR}/plugins/org.eclipse.equinox.launcher_${EQUINOX_VER}.jar -application org.eclipse.ant.core.antRunner  -buildfile build.xml
 
--- a/scripts/runGen.sh	Fri Jan 29 17:50:10 2010 -0800
+++ b/scripts/runGen.sh	Mon Feb 01 12:06:14 2010 -0800
@@ -1,9 +1,14 @@
 #!/bin/sh
+
+set -x 
+
 ECLIPSE_DIR=/usr/eclipse
 PDE_VER=3.5.1.R35x_20090820
 EQUINOX_VER=1.0.201.R35x_v20090715
 JAVA_CMD=/usr/java/jdk1.6.0_18/bin/java
-WS_DIR=/home/symbian/scratch/029/wrttools
+ANT_SCRIPT=${1}
 
-${JAVA_CMD} -jar ${ECLIPSE_DIR}/plugins/org.eclipse.equinox.launcher_${EQUINOX_VER}.jar -application org.eclipse.ant.core.antRunner -buildfile ${WS_DIR}/scripts/genBuildScripts.xml
+${JAVA_CMD} -jar ${ECLIPSE_DIR}/plugins/org.eclipse.equinox.launcher_${EQUINOX_VER}.jar -application org.eclipse.ant.core.antRunner -buildfile ${ANT_SCRIPT}
 
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/scripts/shepard.sh	Mon Feb 01 12:06:14 2010 -0800
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+SCRIPTS_DIR=/home/symbian/wrttools/scripts
+BUILD_DIR=/home/symbian/scratch/build_dir
+DAY_OF_YEAR=`date +%j`
+HG_CMD=/usr/local/bin/hg
+
+export WS_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/workspace/wrttools
+
+# display date and time 
+date
+
+# create build structure
+
+mkdir -p ${BUILD_DIR}/${DAY_OF_YEAR}/workspace
+mkdir -p ${BUILD_DIR}/${DAY_OF_YEAR}/linux
+mkdir -p ${BUILD_DIR}/${DAY_OF_YEAR}/win32
+mkdir -p ${BUILD_DIR}/${DAY_OF_YEAR}/macosx
+
+# check out the code.
+cd ${BUILD_DIR}/${DAY_OF_YEAR}/workspace
+${HG_CMD} clone http://sym-mrswitch:8000 wrttools 
+
+# generate scripts
+${SCRIPTS_DIR}/runGen.sh ${SCRIPTS_DIR}/genBuildScripts.xml
+
+# build it. 
+${SCRIPTS_DIR}/runAnt.sh ${WS_DIR}
+
+# create product 
+
+
+# package it up. 
+
+