Permalink
Browse files

Script to upload newly built packages to sourceforge.

Run via:
bin/scp-sourceforge SOURCEFORGE_USER_NAME
  • Loading branch information...
1 parent b04e21d commit 8238222d970a2a9eeb5739436ecc543ad47d2409 William Deegan committed Nov 26, 2010
Showing with 38 additions and 0 deletions.
  1. +38 −0 bin/scp-sourceforge
View
@@ -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

0 comments on commit 8238222

Please sign in to comment.