scripts/shepard.sh
author John Kern <johnk@symbian.org>
Thu, 04 Feb 2010 08:24:04 -0800
changeset 95 08b14ea8276f
parent 91 ca4b5c63386b
child 158 eea70b5d3a93
permissions -rw-r--r--
tag tarball with day of year
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
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
81
f60819888c52 use white list for jars
John Kern <johnk@symbian.org>
parents: 80
diff changeset
     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
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    10
export PATH=.:/usr/java/jdk1.6.0_18/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    11
65
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
export WS_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/workspace/wrttools
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    13
LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    14
LINUX_EXPORT_DIR=/home/symbian/scratch/025
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    15
WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    16
WIN32_EXPORT_DIR=/home/symbian/buildsFromEugene/win32.win32.x86
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    17
MACOSX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/macosx
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    18
MACOSX_EXPORT_DIR=/home/symbian/buildsFromEugene/macosx.cocoa.x86
65
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
# display date and time 
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
date
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
# create build structure
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    25
mkdir -p ${WS_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    26
mkdir -p ${LINUX_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    27
mkdir -p ${WIN32_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    28
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
    29
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
# check out the code.
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
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
    32
${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
    33
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
# generate scripts
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    35
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
    36
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    37
# build it. 
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    38
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
    39
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    40
# create product 
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    41
# Linux 
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    42
cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR}
81
f60819888c52 use white list for jars
John Kern <johnk@symbian.org>
parents: 80
diff changeset
    43
for j in `find ${WS_DIR} -name 'org.chromium*.jar' -o -name 'org.symbian*.jar'`
f60819888c52 use white list for jars
John Kern <johnk@symbian.org>
parents: 80
diff changeset
    44
do  
80
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    45
	cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    46
done
86
f0510229a599 copy licenses to distribution
John Kern <johnk@symbian.org>
parents: 81
diff changeset
    47
cp -p ${SCRIPTS_DIR}/supporting/* ${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
    48
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    49
# package it up. 
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    50
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    51
cd ${LINUX_PROD_DIR}
95
08b14ea8276f tag tarball with day of year
John Kern <johnk@symbian.org>
parents: 91
diff changeset
    52
tar -czvf webruntime${DAY_OF_YEAR}.linux.tar eclipse
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    53
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    54
# Mac OSX
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    55
cp -pr ${MACOSX_EXPORT_DIR}/eclipse ${MACOSX_PROD_DIR}
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    56
for j in `find ${WS_DIR} -name 'org.chromium*.jar' -o -name 'org.symbian*.jar'`
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    57
do  
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    58
	cp -p $j ${MACOSX_PROD_DIR}/eclipse/plugins/
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    59
done
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    60
cp -p ${SCRIPTS_DIR}/supporting/* ${MACOSX_PROD_DIR}/eclipse/
65
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    61
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    62
# package it up. 
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    63
cd ${MACOSX_PROD_DIR}
95
08b14ea8276f tag tarball with day of year
John Kern <johnk@symbian.org>
parents: 91
diff changeset
    64
tar -czvf  webruntime${DAY_OF_YEAR}.macosx.tar eclipse
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    65
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    66
# Win32
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    67
cp -pr ${WIN32_EXPORT_DIR}/eclipse ${WIN32_PROD_DIR}
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    68
for j in `find ${WS_DIR} -name 'org.chromium*.jar' -o -name 'org.symbian*.jar'`
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    69
do  
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    70
	cp -p $j ${WIN32_PROD_DIR}/eclipse/plugins/
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    71
done
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    72
cp -p ${SCRIPTS_DIR}/supporting/* ${WIN32_PROD_DIR}/eclipse/
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    73
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    74
# package it up. 
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    75
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    76
cd ${WIN32_PROD_DIR}
95
08b14ea8276f tag tarball with day of year
John Kern <johnk@symbian.org>
parents: 91
diff changeset
    77
tar -czvf  webruntime${DAY_OF_YEAR}.win32.tar eclipse
91
ca4b5c63386b provide win32 and macosx tarballs.
John Kern <johnk@symbian.org>
parents: 86
diff changeset
    78