blob: 8e86047b50844d32bdceab6ba0728cf0aa81ce98 [file] [log] [blame]
david_williams311402d2008-11-15 04:09:33 +00001#!/bin/sh
2
3# script to run update digests, meta data, and pack 200 all the jars.
4# this is a handy script to use if/when the site is partially created "by hand",
5# and then need to finalize.
6
7
8function usage() {
9 printf "\n\tUsage: %s [-h] | [-v] -s stream" $(basename $0) >&2
10 printf "\n\t\t%s\n\n" "where h==help, v==verbose, c==clean and s==stream, where steam is Ganymede, Europa, etc" >&2
11}
12
13
14clean=
15stream=
16verbose=
17while getopts 'hvs:' OPTION
18do
19 case $OPTION in
20 h) usage
21 exit 1
22 ;;
23 v) export verbose=1
24 ;;
25 s) stream=$OPTARG
26 ;;
27 ?) usage
28 exit 2
29 ;;
30 esac
31done
32
33shift $(($OPTIND - 1))
34
35if [ -z $stream ]
36then
37 echo ""
38 echo " Need a stream argument"
39 usage
40 exit 1
41fi
42
43echo " Stream: " $stream
44
45if [ -z $BUILD_INITIALIZED ]
46then
47 source properties.shsource
48 source parseSiteArg.shsource $stream
49 export BUILD_INITIALIZED=1
50fi
51
52# run create Digests now, it's a good check if all is well
53./ant.sh -f createDigests.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
54
55# create P2 repository metadata
56./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
57
58# do create pack's later ... takes a long time
59./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
60