author | John Kern <johnk@symbian.org> |
Tue, 02 Feb 2010 09:20:15 -0800 | |
changeset 78 | 25813fb4bf1c |
parent 65 | 6bec0231e8d2 |
child 79 | 04ca4cc712b8 |
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 |
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
7 |
DAY_OF_YEAR=`date +%j` |
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} |
|
39 |
for j in `find ${WS_DIR} -name '*.jar'` |
|
40 |
do |
|
41 |
cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/ |
|
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 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
46 |