| 1 | #! /bin/sh |
| 2 | |
| 3 | # Usage: publish-release <version> <sources-tgz> <sources-tgz-devel> <prebuilt>... |
| 4 | |
| 5 | VERSION="$1" |
| 6 | shift |
| 7 | TGZ="$1" |
| 8 | shift |
| 9 | TGZ_DEVEL="$1" |
| 10 | shift |
| 11 | PREBUILT="$*" |
| 12 | |
| 13 | echo "These files will be published for version $VERSION:" |
| 14 | echo " ==> $TGZ" |
| 15 | echo " ==> $TGZ_DEVEL" |
| 16 | for file in $PREBUILT; do |
| 17 | echo " ==> $file" |
| 18 | done |
| 19 | echo "You will have to enter the Gambit web site password to confirm the operation." |
| 20 | echo "" |
| 21 | |
| 22 | tar cf - $TGZ $TGZ_DEVEL $PREBUILT | ssh -o PreferredAuthentications=keyboard-interactive,password [email protected] "rm -rf release-$VERSION;mkdir release-$VERSION;(cd release-$VERSION && tar xvf -);bin/publish-release $VERSION $TGZ $TGZ_DEVEL $PREBUILT;rm -rf release-$VERSION" |