Merged heads
authorEugene Ostroukhov <eugeneo@symbian.org>
Tue, 02 Feb 2010 13:54:21 -0800
changeset 85 c77287342938
parent 84 b24e6a27768d (current diff)
parent 81 f60819888c52 (diff)
child 87 02d2e9112f8c
child 88 aeba352033d2
Merged heads
--- a/scripts/buildcron	Tue Feb 02 13:53:56 2010 -0800
+++ b/scripts/buildcron	Tue Feb 02 13:54:21 2010 -0800
@@ -1,5 +1,5 @@
 # mail any output to ‘paul’, no matter whose crontab this is
 MAILTO=johnk@symbian.org
-# run at 10 pm 
-0 22 * * 0-5  sh /home/symbian/wrttools/scripts/shepard.sh > /home/symbian/scratch/build-`date +%j`.out 2>&1
+# run at 1 am 
+0 1 * * 0-5  sh /home/symbian/wrttools/scripts/shepard.sh > /home/symbian/scratch/build-`date +%j`.out 2>&1
 
--- a/scripts/runAnt.sh	Tue Feb 02 13:53:56 2010 -0800
+++ b/scripts/runAnt.sh	Tue Feb 02 13:54:21 2010 -0800
@@ -9,8 +9,7 @@
 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} -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
+${JAVA_CMD} -jar ${PDE_ECLIPSE_DIR}/plugins/org.eclipse.equinox.launcher_${EQUINOX_VER}.jar -application org.eclipse.ant.core.antRunner  -buildfile build.xml
 
--- a/scripts/shepard.sh	Tue Feb 02 13:53:56 2010 -0800
+++ b/scripts/shepard.sh	Tue Feb 02 13:54:21 2010 -0800
@@ -1,35 +1,47 @@
 #!/bin/sh
 
+set -x 
+
 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
+LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux
+LINUX_EXPORT_DIR=/home/symbian/scratch/025
+WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32
+MACOSX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/macosx
 
 # 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
+mkdir -p ${WS_DIR}
+mkdir -p ${LINUX_PROD_DIR}
+mkdir -p ${WIN32_PROD_DIR}
+mkdir -p ${MACOSX_PROD_DIR}
 
 # 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
+sh ${SCRIPTS_DIR}/runGen.sh ${SCRIPTS_DIR}/genBuildScripts.xml
 
 # build it. 
-${SCRIPTS_DIR}/runAnt.sh ${WS_DIR}
+sh ${SCRIPTS_DIR}/runAnt.sh ${WS_DIR}
 
 # create product 
-
+# Linux 
+cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR}
+for j in `find ${WS_DIR} -name 'org.chromium*.jar' -o -name 'org.symbian*.jar'`
+do  
+	cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/
+done
 
 # package it up. 
 
+tar -czvf  ${LINUX_PROD_DIR}/webruntime.linux.tar ${LINUX_PROD_DIR}/eclipse/