scripts/shepard.sh
author John Kern <johnk@symbian.org>
Tue, 02 Mar 2010 17:36:13 -0800
changeset 215 c9394af976fe
parent 165 63829d1fe965
child 217 27fd31e7f051
permissions -rwxr-xr-x
bug 1872 - fix installation details dialog
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
     3
set -x 
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
     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
f60819888c52 use white list for jars
John Kern <johnk@symbian.org>
parents: 80
diff changeset
     7
DAY_OF_YEAR=`date +%j`
215
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
     8
ECLIPSE_TIMESTAMP=`date +%Y%m%d%H%M%S`
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
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    10
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
    11
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    12
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
    13
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    14
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
    15
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
    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
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    22
mkdir -p ${BASE_DIR}/${DAY_OF_YEAR}/workspace
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    23
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
    24
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
# check out the code.
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    26
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
    27
${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
    28
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    29
cd ${SOURCE_DIR}/scripts
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    30
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
    31
# 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
    32
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
    33
215
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    34
# bug fix for 1872. [testcase: go to about box. click on installation details.  Do you see an error? ] 
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    35
for f in `find ${SOURCE_DIR} -name MANIFEST.MF`
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    36
do
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    37
	cat $f | sed -e s#\.qualifier##g > ${f}
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    38
done
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    39
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    40
# wrt-ide.product has the orginal reference to 1.0.0.qualifier. Try deleting .qualifier 
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    41
prod_file=${SOURCE_DIR}/org.symbian.tools.wrttools.product/wrt-ide.product
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    42
cat $prod_file | sed -e s#\.qualifier##g > $prod_file
c9394af976fe bug 1872 - fix installation details dialog
John Kern <johnk@symbian.org>
parents: 165
diff changeset
    43
158
eea70b5d3a93 bug 1901 - fix for nightly build
John Kern <johnk@symbian.org>
parents: 95
diff changeset
    44
${ANT_CMD} -DbuildDirectory=${BUILD_DIR} -DsourceDirectory=${SOURCE_DIR}
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    45