blob: 4b3eb65a8a0de1e57096458c7101465873ca9718 [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] -s stream" $(basename $0) >&2
printf "\n\t\t%s\n\n" "where h==help, v==verbose, c==clean and s==stream, where steam is Ganymede, Europa, etc" >&2
}
clean=
stream=
verbose=
while getopts 'hvs:' OPTION
do
case $OPTION in
h) usage
exit 1
;;
v) export verbose=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
# create P2 repository metadata
./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}
if [[ $? > 0 ]]
then
exit $?
fi
# do create pack's later ... takes a long time
./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}
# must re-gen artifact data after jarProcessor used, since it re-writes some jars, changing checksum
# create P2 repository metadata
./ant.sh -f createP2Repo.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${milestoneDirectory}