summaryrefslogtreecommitdiffstats
path: root/bin/scp-sourceforge
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2010-11-26 01:08:33 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2010-11-26 01:08:33 (GMT)
commitaa823b0722a6d7b51ea290c948e32744bf30a5ed (patch)
tree0ff4c3787fda5aa93f56dcb7630ba85f3b5b0df3 /bin/scp-sourceforge
parent5215a8ed547e242c473095824a1b6b0499c40de3 (diff)
downloadSCons-aa823b0722a6d7b51ea290c948e32744bf30a5ed.zip
SCons-aa823b0722a6d7b51ea290c948e32744bf30a5ed.tar.gz
SCons-aa823b0722a6d7b51ea290c948e32744bf30a5ed.tar.bz2
Script to upload newly built packages to sourceforge.
Run via: bin/scp-sourceforge SOURCEFORGE_USER_NAME
Diffstat (limited to 'bin/scp-sourceforge')
-rwxr-xr-xbin/scp-sourceforge38
1 files changed, 38 insertions, 0 deletions
diff --git a/bin/scp-sourceforge b/bin/scp-sourceforge
new file mode 100755
index 0000000..ad761d1
--- /dev/null
+++ b/bin/scp-sourceforge
@@ -0,0 +1,38 @@
+#!/bin/bash
+set -x
+set -e
+
+if [ -z "$1" ]; then
+ echo usage: $0 SourceForgeUserName
+ exit
+fi
+
+SF_USER=$1
+
+rm -rf sf
+for p in scons scons-src scons-local
+do
+ mkdir -p sf/$p/$VERSION
+ cp -p src/Announce.txt \
+ build/scons/CHANGES.txt \
+ build/scons/RELEASE.txt \
+ sf/$p/$VERSION
+done
+
+cp -p build/dist/scons-$VERSION-1.noarch.rpm \
+ build/dist/scons-$VERSION-1.src.rpm \
+ build/dist/scons-$VERSION.tar.gz \
+ build/dist/scons-$VERSION.win32.exe \
+ build/dist/scons-$VERSION.zip \
+ sf/scons/$VERSION
+cp -p build/dist/scons-local-$VERSION.tar.gz \
+ build/dist/scons-local-$VERSION.zip \
+ sf/scons-src/$VERSION
+cp -p build/dist/scons-src-$VERSION.tar.gz \
+ build/dist/scons-src-$VERSION.zip \
+ sf/scons-local/$VERSION
+
+# Transmit them in this order, since the most-recent is displayed at the top
+scp -r sf/scons-local/ sf/scons-src/ sf/scons/ \
+ $SF_USER,scons@frs.sourceforge.net:/home/pfs/project/s/sc/scons
+rm -rf sf