SCons_newglossary / bin / scp-sourceforge

#!/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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.