blob: 4b3eb65a8a0de1e57096458c7101465873ca9718 [file] [log] [blame]
david_williamsfca4c312009-05-19 22:06:13 +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# create P2 repository metadata
53./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}
54
55if [[ $? > 0 ]]
56then
57 exit $?
58fi
59
60# do create pack's later ... takes a long time
61./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}
62
63# must re-gen artifact data after jarProcessor used, since it re-writes some jars, changing checksum
64# create P2 repository metadata
65./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}