david_williams | ef2aa78 | 2008-08-21 06:17:15 +0000 | [diff] [blame] | 1 | #!/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 | |
| 8 | function usage() { |
david_williams | c5605ef | 2008-08-21 06:20:28 +0000 | [diff] [blame] | 9 | printf "\n\tUsage: %s [-h] | [-v] -s stream" $(basename $0) >&2 |
david_williams | ef2aa78 | 2008-08-21 06:17:15 +0000 | [diff] [blame] | 10 | 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 | |
| 14 | clean= |
| 15 | stream= |
| 16 | verbose= |
| 17 | while getopts 'hvs:' OPTION |
| 18 | do |
| 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 |
| 31 | done |
| 32 | |
| 33 | shift $(($OPTIND - 1)) |
| 34 | |
| 35 | if [ -z $stream ] |
| 36 | then |
| 37 | echo "" |
| 38 | echo " Need a stream argument" |
| 39 | usage |
| 40 | exit 1 |
| 41 | fi |
| 42 | |
| 43 | echo " Stream: " $stream |
| 44 | |
| 45 | if [ -z $BUILD_INITIALIZED ] |
| 46 | then |
| 47 | source properties.shsource |
| 48 | source parseSiteArg.shsource $stream |
| 49 | export BUILD_INITIALIZED=1 |
| 50 | fi |
| 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 | |