author | John Kern <johnk@symbian.org> |
Tue, 02 Feb 2010 12:43:30 -0800 | |
changeset 81 | f60819888c52 |
parent 80 | 70886c3d116d |
child 86 | f0510229a599 |
permissions | -rw-r--r-- |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
1 |
#!/bin/sh |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
2 |
|
78 | 3 |
set -x |
4 |
||
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
5 |
SCRIPTS_DIR=/home/symbian/wrttools/scripts |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
6 |
BUILD_DIR=/home/symbian/scratch/build_dir |
81 | 7 |
DAY_OF_YEAR=`date +%j` |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
8 |
HG_CMD=/usr/local/bin/hg |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
9 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
10 |
export WS_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/workspace/wrttools |
78 | 11 |
LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux |
12 |
LINUX_EXPORT_DIR=/home/symbian/scratch/025 |
|
13 |
WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32 |
|
14 |
MACOSX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/macosx |
|
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
15 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
16 |
# display date and time |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
17 |
date |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
18 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
19 |
# create build structure |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
20 |
|
78 | 21 |
mkdir -p ${WS_DIR} |
22 |
mkdir -p ${LINUX_PROD_DIR} |
|
23 |
mkdir -p ${WIN32_PROD_DIR} |
|
24 |
mkdir -p ${MACOSX_PROD_DIR} |
|
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
25 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
26 |
# check out the code. |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
27 |
cd ${BUILD_DIR}/${DAY_OF_YEAR}/workspace |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
28 |
${HG_CMD} clone http://sym-mrswitch:8000 wrttools |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
29 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
30 |
# generate scripts |
78 | 31 |
sh ${SCRIPTS_DIR}/runGen.sh ${SCRIPTS_DIR}/genBuildScripts.xml |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
32 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
33 |
# build it. |
78 | 34 |
sh ${SCRIPTS_DIR}/runAnt.sh ${WS_DIR} |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
35 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
36 |
# create product |
78 | 37 |
# Linux |
38 |
cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR} |
|
81 | 39 |
for j in `find ${WS_DIR} -name 'org.chromium*.jar' -o -name 'org.symbian*.jar'` |
40 |
do |
|
80 | 41 |
cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/ |
78 | 42 |
done |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
43 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
44 |
# package it up. |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
45 |
|
79 | 46 |
tar -czvf ${LINUX_PROD_DIR}/webruntime.linux.tar ${LINUX_PROD_DIR}/eclipse/ |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
47 |