blob: 895c817ab61a63bef3aaa6d5b2ccd7d56413376f [file] [log] [blame]
david_williamsef2aa782008-08-21 06:17:15 +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() {
david_williamsc5605ef2008-08-21 06:20:28 +00009 printf "\n\tUsage: %s [-h] | [-v] -s stream" $(basename $0) >&2
david_williamsef2aa782008-08-21 06:17:15 +000010 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=${releaseDir}
54
55# create P2 repository metadata
56./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${releaseDir}
57
58# do create pack's later ... takes a long time
59./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${releaseDir}
60