|
1 | 1 | #!/bin/bash |
| 2 | +set -u |
| 3 | +set -e |
| 4 | + |
| 5 | +BASE_DIR="$( cd "$( /usr/bin/dirname "${BASH_SOURCE[0]}" )/.." && /bin/pwd )" |
| 6 | +BUILD_DIR="$BASE_DIR/build" |
2 | 7 |
|
3 | 8 | VERSION=${1:?no version}${2:?no release-candidate flag (can be an empty string)} |
4 | 9 | echo "Version: $VERSION" |
| 10 | + |
5 | 11 | CREDENTIALS="-u ${3:?no Google Code username} -w ${4:?mp Google Code password}" |
6 | 12 | echo "Credentials: ${CREDENTIALS}" |
7 | 13 |
|
8 | 14 | LABELS="Type-Archive,OpSys-All,${1},${2}" |
9 | 15 |
|
10 | 16 | # Hmmm. multiple labels don't seem to work properly. |
11 | | -./googlecode_upload.py -s "Full Hamcrest distribution (tgz)" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-$VERSION.tgz |
12 | | -./googlecode_upload.py -s "Full Hamcrest distribution (zip)" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-$VERSION.zip |
13 | | -./googlecode_upload.py -s "Hamcrest core Jar (bare-bones minimum)" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-core-$VERSION.jar |
14 | | -./googlecode_upload.py -s "Hamcrest all-in-one Jar" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-all-$VERSION.jar |
15 | | -./googlecode_upload.py -s "Hamcrest code generator tool" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-generator-$VERSION.jar |
16 | | -./googlecode_upload.py -s "Hamcrest testing library integration" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-integration-$VERSION.jar |
17 | | -./googlecode_upload.py -s "Hamcrest additional library of matchers" -p hamcrest ${CREDENTIALS} -l "$LABELS" build/hamcrest-library-$VERSION.jar |
| 17 | +./googlecode_upload.py -s "Full Hamcrest distribution (tgz)" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-$VERSION.tgz |
| 18 | +./googlecode_upload.py -s "Full Hamcrest distribution (zip)" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-$VERSION.zip |
| 19 | +./googlecode_upload.py -s "Hamcrest core Jar (bare-bones minimum)" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-core-$VERSION.jar |
| 20 | +./googlecode_upload.py -s "Hamcrest all-in-one Jar" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-all-$VERSION.jar |
| 21 | +./googlecode_upload.py -s "Hamcrest code generator tool" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-generator-$VERSION.jar |
| 22 | +./googlecode_upload.py -s "Hamcrest testing library integration" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-integration-$VERSION.jar |
| 23 | +./googlecode_upload.py -s "Hamcrest additional library of matchers" -p hamcrest ${CREDENTIALS} -l "$LABELS" $BUILD_DIR/hamcrest-library-$VERSION.jar |
18 | 24 |
|
0 commit comments