scripts/shepard.sh
author John Kern <johnk@symbian.org>
Tue, 02 Feb 2010 09:46:51 -0800
changeset 79 04ca4cc712b8
parent 78 25813fb4bf1c
child 80 70886c3d116d
permissions -rw-r--r--
tar up the product
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
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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    11
LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    12
LINUX_EXPORT_DIR=/home/symbian/scratch/025
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    13
WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    21
mkdir -p ${WS_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    22
mkdir -p ${LINUX_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    23
mkdir -p ${WIN32_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    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
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    37
# Linux 
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    38
cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    39
for j in `find ${WS_DIR} -name '*.jar'`
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    40
do
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    41
	cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/ 
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    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
79
04ca4cc712b8 tar up the product
John Kern <johnk@symbian.org>
parents: 78
diff changeset
    46
tar -czvf  ${LINUX_PROD_DIR}/webruntime.linux.tar ${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
    47