author | John Kern <johnk@symbian.org> |
Tue, 02 Feb 2010 11:38:45 -0800 | |
changeset 80 | 70886c3d116d |
parent 79 | 04ca4cc712b8 |
child 81 | f60819888c52 |
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 |
80 | 7 |
# DAY_OF_YEAR=`date +%j` |
8 |
DAY_OF_YEAR=033-1 |
|
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
9 |
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
|
10 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
11 |
export WS_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/workspace/wrttools |
78 | 12 |
LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux |
13 |
LINUX_EXPORT_DIR=/home/symbian/scratch/025 |
|
14 |
WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32 |
|
15 |
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
|
16 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
17 |
# display date and time |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
18 |
date |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
19 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
20 |
# create build structure |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
21 |
|
78 | 22 |
mkdir -p ${WS_DIR} |
23 |
mkdir -p ${LINUX_PROD_DIR} |
|
24 |
mkdir -p ${WIN32_PROD_DIR} |
|
25 |
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
|
26 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
27 |
# check out the code. |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
28 |
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
|
29 |
${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
|
30 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
31 |
# generate scripts |
78 | 32 |
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
|
33 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
34 |
# build it. |
78 | 35 |
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
|
36 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
37 |
# create product |
78 | 38 |
# Linux |
39 |
cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR} |
|
40 |
for j in `find ${WS_DIR} -name '*.jar'` |
|
41 |
do |
|
80 | 42 |
b=`basename $j` |
43 |
case ${b} in |
|
44 |
tagsoup*) |
|
45 |
;; |
|
46 |
jtidy*) |
|
47 |
;; |
|
48 |
tk.eclipse.plugin.htmleditor*) |
|
49 |
;; |
|
50 |
*) |
|
51 |
cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/ |
|
52 |
;; |
|
53 |
esac |
|
78 | 54 |
done |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
55 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
56 |
# package it up. |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
57 |
|
79 | 58 |
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
|
59 |