diff options
author | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-05 17:36:16 (GMT) |
---|---|---|
committer | Gary Oberbrunner <garyo@oberbrunner.com> | 2012-08-05 17:36:16 (GMT) |
commit | 305b50ccfe2c1158e26a3a334e3f6dae0dd7f63f (patch) | |
tree | 6d0e41e49b8d08e65605526e6cb2f19b066479d5 /bin | |
parent | e0e780e48082ec2d02543a1f88876f43a1125197 (diff) | |
download | SCons-305b50ccfe2c1158e26a3a334e3f6dae0dd7f63f.zip SCons-305b50ccfe2c1158e26a3a334e3f6dae0dd7f63f.tar.gz SCons-305b50ccfe2c1158e26a3a334e3f6dae0dd7f63f.tar.bz2 |
New release script to upload dist files to SourceForge
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/upload-release-files.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/bin/upload-release-files.sh b/bin/upload-release-files.sh new file mode 100755 index 0000000..17eb71b --- /dev/null +++ b/bin/upload-release-files.sh @@ -0,0 +1,51 @@ +#!/bin/sh + +if [ $# -lt 2 ]; then + echo Usage: $0 VERSION SF_USERNAME + exit 1 +fi + +VERSION=$1; shift +SF_USER=$1; shift + +RSYNC='rsync' +RSYNCOPTS='-v -e ssh' +SF_MACHINE='frs.sourceforge.net' +SF_TOPDIR='/home/frs/project/scons' + +# the build products are here: +cd build/dist +cp -f ../../src/CHANGES.txt ../../src/RELEASE.txt ../../src/Announce.txt . + +set -x + +# Upload main scons release files: +$RSYNC $RSYNCOPTS \ + scons-$VERSION-1.noarch.rpm \ + scons-$VERSION-1.src.rpm \ + scons-$VERSION-setup.exe \ + scons-$VERSION.tar.gz \ + scons-$VERSION.zip \ + Announce.txt CHANGES.txt RELEASE.txt \ + $SF_USER@$SF_MACHINE:$SF_TOPDIR/scons/$VERSION/ + +# Local packages: +$RSYNC $RSYNCOPTS \ + scons-local-$VERSION.tar.gz \ + scons-local-$VERSION.zip \ + Announce.txt CHANGES.txt RELEASE.txt \ + $SF_USER@$SF_MACHINE:$SF_TOPDIR/scons-local/$VERSION/ + +# Source packages: +$RSYNC $RSYNCOPTS \ + scons-src-$VERSION.tar.gz \ + scons-src-$VERSION.zip \ + Announce.txt CHANGES.txt RELEASE.txt \ + $SF_USER@$SF_MACHINE:$SF_TOPDIR/scons-src/$VERSION/ + + +# Doc doesn't go to SF, but to scons.org. +$RSYNC $RSYNCOPTS \ + scons-doc-$VERSION.tar.gz \ + scons@scons.org:public_html/production/doc/$VERSION/ + |