SCons / bin /


if [ $# -lt 2 ]; then
	exit 1

VERSION=$1; shift
SF_USER=$1; shift

RSYNCOPTS='-v -e ssh'

# 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:
  scons-$VERSION-1.noarch.rpm \
  scons-$VERSION-1.src.rpm \
  scons-$VERSION-setup.exe \
  scons-$VERSION.tar.gz \
  scons-$ \
  Announce.txt CHANGES.txt RELEASE.txt \

# Local packages:
  scons-local-$VERSION.tar.gz \
  scons-local-$ \
  Announce.txt CHANGES.txt RELEASE.txt \

# Source packages:
  scons-src-$VERSION.tar.gz \
  scons-src-$ \
  Announce.txt CHANGES.txt RELEASE.txt \

# stuff:
# Doc: copy the doc tgz over; we'll unpack later
  scons-doc-$VERSION.tar.gz \$VERSION/
# Copy the changelog
  CHANGES.txt \
# Note that Announce.txt gets copied over to RELEASE.txt.
# This should be fixed at some point.
  Announce.txt \
# Unpack the doc and repoint doc symlinks:
ssh "
  cd public_html/production/doc
  tar xvf scons-doc-$VERSION.tar.gz
  cd ..
  rm latest; ln -s $VERSION latest
  rm production; ln -s $VERSION production
  for f in HTML PDF PS TEXT; do rm $f; ln -s $VERSION/$f $f; done
echo '*****'
echo '***** Now manually update index.php, includes/versions.php and news-raw.xhtml on'
echo '*****'
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
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.