author | Eugene Ostroukhov <eugeneo@symbian.org> |
Fri, 19 Feb 2010 11:37:37 -0800 | |
changeset 179 | 222da94aea45 |
parent 165 | 63829d1fe965 |
child 215 | c9394af976fe |
permissions | -rwxr-xr-x |
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 |
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
6 |
BASE_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 |
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
9 |
ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant |
91
ca4b5c63386b
provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents:
86
diff
changeset
|
10 |
|
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
11 |
export PATH=.:/usr/java/jdk1.6.0_18/bin:/usr/local/apache-ant-1.8.0/bin/ant:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
12 |
|
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
13 |
export SOURCE_DIR=${BASE_DIR}/${DAY_OF_YEAR}/workspace/wrttools |
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
14 |
export BUILD_DIR=${BASE_DIR}/${DAY_OF_YEAR}/eclipse.build |
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 |
|
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
21 |
mkdir -p ${BASE_DIR}/${DAY_OF_YEAR}/workspace |
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
22 |
mkdir -p ${BASE_DIR} |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
23 |
|
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
24 |
# check out the code. |
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
25 |
cd ${BASE_DIR}/${DAY_OF_YEAR}/workspace |
65
6bec0231e8d2
added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
26 |
${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
|
27 |
|
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
28 |
cd ${SOURCE_DIR}/scripts |
91
ca4b5c63386b
provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents:
86
diff
changeset
|
29 |
|
165
63829d1fe965
build.properties is now a template. This allows the build process to replace strings. Any token prefixed with SED should be replaced by the build script. The output goes to build.properties.
John Kern <johnk@symbian.org>
parents:
158
diff
changeset
|
30 |
# set the build directory in the build.properties files. |
63829d1fe965
build.properties is now a template. This allows the build process to replace strings. Any token prefixed with SED should be replaced by the build script. The output goes to build.properties.
John Kern <johnk@symbian.org>
parents:
158
diff
changeset
|
31 |
cat ${SOURCE_DIR}/scripts/build.properties.SED | sed -e s#SED_BUILD_DIR#${BUILD_DIR}#g > ${SOURCE_DIR}/scripts/build.properties |
63829d1fe965
build.properties is now a template. This allows the build process to replace strings. Any token prefixed with SED should be replaced by the build script. The output goes to build.properties.
John Kern <johnk@symbian.org>
parents:
158
diff
changeset
|
32 |
|
158
eea70b5d3a93
bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents:
95
diff
changeset
|
33 |
${ANT_CMD} -DbuildDirectory=${BUILD_DIR} -DsourceDirectory=${SOURCE_DIR} |
91
ca4b5c63386b
provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents:
86
diff
changeset
|
34 |