scripts/shepard.sh
author John Kern <johnk@symbian.org>
Tue, 02 Feb 2010 11:38:45 -0800
changeset 80 70886c3d116d
parent 79 04ca4cc712b8
child 81 f60819888c52
permissions -rw-r--r--
black list certain jar files
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
80
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
     7
# DAY_OF_YEAR=`date +%j`
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
     8
DAY_OF_YEAR=033-1
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
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
export WS_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/workspace/wrttools
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    12
LINUX_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/linux
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    13
LINUX_EXPORT_DIR=/home/symbian/scratch/025
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    14
WIN32_PROD_DIR=${BUILD_DIR}/${DAY_OF_YEAR}/win32
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    15
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
    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
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    22
mkdir -p ${WS_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    23
mkdir -p ${LINUX_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    24
mkdir -p ${WIN32_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    25
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
    26
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
# check out the code.
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
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
    29
${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
    30
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
# generate scripts
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    32
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
    33
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
# build it. 
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    35
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
    36
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    37
# create product 
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    38
# Linux 
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    39
cp -pr ${LINUX_EXPORT_DIR}/eclipse ${LINUX_PROD_DIR}
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    40
for j in `find ${WS_DIR} -name '*.jar'`
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    41
do
80
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    42
	b=`basename $j`
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    43
	case ${b} in
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    44
	tagsoup*) 
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    45
	;;
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    46
	jtidy*)
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    47
	;;
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    48
	tk.eclipse.plugin.htmleditor*) 
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    49
	;;		
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    50
	*)  
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    51
	cp -p $j ${LINUX_PROD_DIR}/eclipse/plugins/
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    52
	;;
70886c3d116d black list certain jar files
John Kern <johnk@symbian.org>
parents: 79
diff changeset
    53
	esac
78
25813fb4bf1c build linux product
John Kern <johnk@symbian.org>
parents: 65
diff changeset
    54
done
65
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    55
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    56
# package it up. 
6bec0231e8d2 added script to drive the builds. updated others to accept parameters
John Kern <johnk@symbian.org>
parents:
diff changeset
    57
79
04ca4cc712b8 tar up the product
John Kern <johnk@symbian.org>
parents: 78
diff changeset
    58
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
    59