blob: ffaac50354b5d1cf60d225195dcbbadd440c3836 [file] [log] [blame]
#!/bin/sh
# script to run update digests, meta data, and pack 200 all the jars.
# this is a handy script to use if/when the site is partially created "by hand",
# and then need to finalize.
function usage() {
printf "\n\tUsage: %s [-h] | [-v] [-p] -s stream" $(basename $0) >&2
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
}
clean=
stream=
verbose=
dopack=
while getopts 'hvps:' OPTION
do
case $OPTION in
h) usage
exit 1
;;
v) export verbose=1
;;
v) dopack=1
;;
s) stream=$OPTARG
;;
?) usage
exit 2
;;
esac
done
shift $(($OPTIND - 1))
if [ -z $stream ]
then
echo ""
echo " Need a stream argument"
usage
exit 1
fi
echo " Stream: " $stream
if [ -z $BUILD_INITIALIZED ]
then
source properties.shsource
source parseSiteArg.shsource $stream
export BUILD_INITIALIZED=1
fi
# run create Digests now, it's a good check if all is well
./ant.sh -f createDigests.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
# create P2 repository metadata
./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
# normally do create pack's later ... takes a long time
if [ dopack ]
then
./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite}
fi