Merge pull request #4554 from mwichmann/move-env-checker
[scons.git] / bin / scp-sourceforge
blob07df3ea9486475b8ca83f5d2cde0636faa041f4c
1 #!/bin/bash
2 set -x
3 set -e
5 if [ -z "$1" ]; then
6 echo usage: $0 SourceForgeUserName
7 exit
8 fi
10 SF_USER=$1
12 rm -rf sf
13 for p in scons scons-src scons-local
15 mkdir -p sf/$p/$VERSION
16 cp -p src/Announce.txt \
17 build/scons/CHANGES.txt \
18 build/scons/RELEASE.txt \
19 sf/$p/$VERSION
20 done
22 cp -p build/scons/README.txt \
23 sf/.
25 cp -p build/dist/scons-$VERSION-1.noarch.rpm \
26 build/dist/scons-$VERSION-1.src.rpm \
27 build/dist/scons-$VERSION.tar.gz \
28 build/dist/scons-$VERSION.win32.exe \
29 build/dist/scons-$VERSION.win-amd64.exe \
30 build/dist/scons-$VERSION.zip \
31 sf/scons/$VERSION
32 cp -p build/dist/scons-local-$VERSION.tar.gz \
33 build/dist/scons-local-$VERSION.zip \
34 sf/scons-src/$VERSION
35 cp -p build/dist/scons-src-$VERSION.tar.gz \
36 build/dist/scons-src-$VERSION.zip \
37 sf/scons-local/$VERSION
39 # Transmit them in this order, since the most-recent is displayed at the top
40 scp -r sf/scons-local/ sf/scons-src/ sf/scons/ \
41 $SF_USER,scons@frs.sourceforge.net:/home/pfs/project/s/sc/scons
43 scp sf/README.txt \
44 $SF_USER,scons@frs.sourceforge.net:/home/pfs/project/s/sc/scons
46 rm -rf sf