equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 set -x |
3 set -x |
4 |
4 |
5 SCRIPTS_DIR=/home/symbian/wrttools/scripts |
5 SCRIPTS_DIR=/home/symbian/wrttools/scripts |
|
6 LOCAL_REPO_DIR=/home/symbian/local-repo/wrttools |
6 BASE_DIR=/home/symbian/scratch/build_dir |
7 BASE_DIR=/home/symbian/scratch/build_dir |
7 ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`-${BUILD_NUMBER:-NO_BUILD_NUMBER} |
8 ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`-${BUILD_NUMBER:-NO_BUILD_NUMBER} |
8 HG_CMD=/usr/local/bin/hg |
9 HG_CMD=/usr/local/bin/hg |
9 ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant |
10 ANT_CMD=/usr/local/apache-ant-1.8.0/bin/ant |
10 |
11 |
19 |
20 |
20 # create build structure |
21 # create build structure |
21 |
22 |
22 mkdir -p ${WS_DIR} |
23 mkdir -p ${WS_DIR} |
23 |
24 |
|
25 # synchronize local cache with http://developer.symbian.org/oss/MCL/sftools/dev/eclipseenv/wrttools/ |
|
26 cd ${LOCAL_REPO_DIR} |
|
27 ${HG_CMD} pull |
|
28 ${HG_CMD} update |
|
29 |
24 # check out the code. |
30 # check out the code. |
25 cd ${WS_DIR} |
31 cd ${WS_DIR} |
26 ${HG_CMD} clone http://developer.symbian.org/oss/MCL/sftools/dev/eclipseenv/wrttools/ |
32 ${HG_CMD} clone ${LOCAL_REPO_DIR} |
27 |
33 |
28 cd ${SOURCE_DIR}/scripts |
34 cd ${SOURCE_DIR}/scripts |
29 |
35 |
30 # set the build directory in the build.properties files. |
36 # set the build directory in the build.properties files. |
31 cat ${SOURCE_DIR}/scripts/build.properties.SED | sed -e s#SED_BUILD_DIR#${BUILD_DIR}#g > ${SOURCE_DIR}/scripts/build.properties |
37 cat ${SOURCE_DIR}/scripts/build.properties.SED | sed -e s#SED_BUILD_DIR#${BUILD_DIR}#g > ${SOURCE_DIR}/scripts/build.properties |