blob: a95b7eb447e0b10d8e701d0fcf2d4d894259d05a [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() {
david_williamsb3f9dbd2008-12-18 21:02:34 +00009 printf "\n\tUsage: %s [-h] | [-v] [-p] -s stream" $(basename $0) >&2
10 printf "\n\t\t%s\n\n" "where h==help, v==verbose, p==do pack and s==stream, where steam is Ganymede, Europa, etc" >&2
david_williams311402d2008-11-15 04:09:33 +000011}
12
13
14clean=
15stream=
16verbose=
david_williamsb3f9dbd2008-12-18 21:02:34 +000017dopack=
18while getopts 'hvps:' OPTION
david_williams311402d2008-11-15 04:09:33 +000019do
20 case $OPTION in
21 h) usage
22 exit 1
23 ;;
24 v) export verbose=1
25 ;;
david_williamse6caf2a2008-12-20 03:06:55 +000026 p) dopack=1
david_williamsb3f9dbd2008-12-18 21:02:34 +000027 ;;
david_williams311402d2008-11-15 04:09:33 +000028 s) stream=$OPTARG
29 ;;
30 ?) usage
31 exit 2
32 ;;
33 esac
34done
35
36shift $(($OPTIND - 1))
37
38if [ -z $stream ]
39then
40 echo ""
41 echo " Need a stream argument"
42 usage
43 exit 1
44fi
45
46echo " Stream: " $stream
47
48if [ -z $BUILD_INITIALIZED ]
49then
50 source properties.shsource
51 source parseSiteArg.shsource $stream
52 export BUILD_INITIALIZED=1
53fi
54
david_williams311402d2008-11-15 04:09:33 +000055# create P2 repository metadata
56./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
57
david_williamsb3f9dbd2008-12-18 21:02:34 +000058# normally do create pack's later ... takes a long time
david_williamse6caf2a2008-12-20 03:06:55 +000059if [ $dopack ]
david_williamsb3f9dbd2008-12-18 21:02:34 +000060then
61 ./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
62fi
david_williams311402d2008-11-15 04:09:33 +000063