| #!/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 |
| |
| # 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} |
| |
| # do create pack's later ... takes a long time |
| ./ant.sh -f createPack200s.xml -Declipse.home=${eclipseLocation} -Dupdate.site=${testUpdateSite} |
| |