Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49400 - in branches/release/tools/release: . msvc msvc/compare_trees
From: bdawes_at_[hidden]
Date: 2008-10-20 09:49:11


Author: bemandawes
Date: 2008-10-20 09:49:10 EDT (Mon, 20 Oct 2008)
New Revision: 49400
URL: http://svn.boost.org/trac/boost/changeset/49400

Log:
Release scripts: merge from trunk
Added:
   branches/release/tools/release/build_docs.sh
      - copied unchanged from r49399, /trunk/tools/release/build_docs.sh
   branches/release/tools/release/build_release.sh
      - copied unchanged from r49399, /trunk/tools/release/build_release.sh
   branches/release/tools/release/build_release_packages.sh
      - copied unchanged from r49399, /trunk/tools/release/build_release_packages.sh
   branches/release/tools/release/diff_trunk_release.bat
      - copied unchanged from r49399, /trunk/tools/release/diff_trunk_release.bat
   branches/release/tools/release/load_posix.sh
      - copied unchanged from r49399, /trunk/tools/release/load_posix.sh
   branches/release/tools/release/load_windows.sh
      - copied unchanged from r49399, /trunk/tools/release/load_windows.sh
   branches/release/tools/release/make_packages.sh
      - copied unchanged from r49399, /trunk/tools/release/make_packages.sh
   branches/release/tools/release/msvc/
      - copied from r49399, /trunk/tools/release/msvc/
   branches/release/tools/release/msvc/compare_trees/
      - copied from r49399, /trunk/tools/release/msvc/compare_trees/
   branches/release/tools/release/msvc/compare_trees/compare_trees.vcproj
      - copied unchanged from r49399, /trunk/tools/release/msvc/compare_trees/compare_trees.vcproj
   branches/release/tools/release/msvc/msvc.sln
      - copied unchanged from r49399, /trunk/tools/release/msvc/msvc.sln
   branches/release/tools/release/snapshot.sh
      - copied unchanged from r49399, /trunk/tools/release/snapshot.sh
Text files modified:
   branches/release/tools/release/inspect.sh | 10 +++++++-
   branches/release/tools/release/snapshot_posix.sh | 37 ++++++++++++++++++++++++++-------
   branches/release/tools/release/snapshot_windows.sh | 44 +++++++++++++++++++++++++++++----------
   3 files changed, 69 insertions(+), 22 deletions(-)

Modified: branches/release/tools/release/inspect.sh
==============================================================================
--- branches/release/tools/release/inspect.sh (original)
+++ branches/release/tools/release/inspect.sh 2008-10-20 09:49:10 EDT (Mon, 20 Oct 2008)
@@ -1,9 +1,12 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 # Inspect snapshot
 
 # © Copyright 2008 Beman Dawes
-# Distributed under the Boost Software License, Version 1.0. See http://www.boost.org/LICENSE_1_0.txt
+# Distributed under the Boost Software License, Version 1.0.
+# See http://www.boost.org/LICENSE_1_0.txt
+
+# This script uses ftp, and thus assumes ~/.netrc contains a machine ... entry
 
 pushd posix/tools/inspect/build
 bjam
@@ -14,6 +17,7 @@
 popd
 
 # create the ftp script
+echo create ftp script...
 echo "dir" >inspect.ftp
 echo "binary" >>inspect.ftp
 echo "put inspect.html" >>inspect.ftp
@@ -22,4 +26,6 @@
 echo "dir" >>inspect.ftp
 echo "bye" >>inspect.ftp
 # use cygwin ftp rather than Windows ftp
+echo ftp...
 /usr/bin/ftp -v -i boost.cowic.de <inspect.ftp
+echo inspect.sh complete

Modified: branches/release/tools/release/snapshot_posix.sh
==============================================================================
--- branches/release/tools/release/snapshot_posix.sh (original)
+++ branches/release/tools/release/snapshot_posix.sh 2008-10-20 09:49:10 EDT (Mon, 20 Oct 2008)
@@ -1,34 +1,55 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 # Build a branches/release snapshot for Posix, using LF line termination
 
-# © Copyright 2008 Beman Dawes
-# Distributed under the Boost Software License, Version 1.0. See http://www.boost.org/LICENSE_1_0.txt
+# © Copyright 2008 Beman Dawes
+# Distributed under the Boost Software License, Version 1.0.
+# See http://www.boost.org/LICENSE_1_0.txt
 
+echo "Build a branches/release snapshot for POSIX, using LF line termination..."
+
+echo "Removing old files..."
 rm -r -f posix
+
+echo "Exporting files from subversion..."
 svn export --non-interactive --native-eol LF http://svn.boost.org/svn/boost/branches/release posix
+
+echo "Building docs..."
 pushd posix/doc
-bjam --v2 >../../posix-bjam.log
+bjam-cygwin --v2 --toolset=gcc &>../../posix-bjam.log
 popd
+
+echo "Cleaning up and renaming..."
 rm -r posix/bin.v2
 SNAPSHOT_DATE=`eval date +%Y-%m-%d`
 echo SNAPSHOT_DATE is $SNAPSHOT_DATE
 mv posix boost-posix-$SNAPSHOT_DATE
 rm -f posix.tar.gz
 rm -f posix.tar.bz2
+
+echo "Building .gz file..."
 tar cfz posix.tar.gz boost-posix-$SNAPSHOT_DATE
+echo "Building .bz2 file..."
 gunzip -c posix.tar.gz | bzip2 >posix.tar.bz2
 mv boost-posix-$SNAPSHOT_DATE posix
-# create the ftp script
+
+echo "Creating ftp script..."
 echo "dir" >posix.ftp
 echo "binary" >>posix.ftp
-echo "put posix.tar.gz" >>posix.ftp
-echo "mdelete boost-posix*.gz" >>posix.ftp
-echo "rename posix.tar.gz boost-posix-$SNAPSHOT_DATE.tar.gz" >>posix.ftp
+
+#echo "put posix.tar.gz" >>posix.ftp
+#echo "mdelete boost-posix*.gz" >>posix.ftp
+#echo "rename posix.tar.gz boost-posix-$SNAPSHOT_DATE.tar.gz" >>posix.ftp
+
 echo "put posix.tar.bz2" >>posix.ftp
 echo "mdelete boost-posix*.bz2" >>posix.ftp
 echo "rename posix.tar.bz2 boost-posix-$SNAPSHOT_DATE.tar.bz2" >>posix.ftp
+
 echo "dir" >>posix.ftp
 echo "bye" >>posix.ftp
+
+echo "Running ftp script..."
 # use cygwin ftp rather than Windows ftp
 /usr/bin/ftp -v -i boost.cowic.de <posix.ftp
+
+echo "POSIX snapshot complete!

Modified: branches/release/tools/release/snapshot_windows.sh
==============================================================================
--- branches/release/tools/release/snapshot_windows.sh (original)
+++ branches/release/tools/release/snapshot_windows.sh 2008-10-20 09:49:10 EDT (Mon, 20 Oct 2008)
@@ -1,41 +1,61 @@
-#!/bin/sh
+#!/usr/bin/env bash
 
 # Build a branches/release snapshot for Windows, using CRLF line termination
 
 # © Copyright 2008 Beman Dawes
-# Distributed under the Boost Software License, Version 1.0. See http://www.boost.org/LICENSE_1_0.txt
+# Distributed under the Boost Software License, Version 1.0.
+# See http://www.boost.org/LICENSE_1_0.txt
 
+# This script uses ftp, and thus assumes ~/.netrc contains a machine ... entry
+
+echo "Build a branches/release snapshot for Windows, using CRLF line termination..."
+
+echo "Removing old files..."
 rm -r -f windows
+
+echo "Exporting files from subversion..."
 svn export --non-interactive --native-eol CRLF http://svn.boost.org/svn/boost/branches/release windows
-pushd windows/doc
-bjam --v2 >../../windows-bjam.log
-popd
+
+#echo "Building documentation..."
+#pushd windows/doc
+#bjam-cygwin --v2 --toolset=gcc &>../../windows-bjam.log
+#popd
+
+echo "Copying docs from posix tree..."
+cp --recursive posix/doc/html windows/doc
+
+echo "Cleaning up and renaming..."
 rm -r windows/bin.v2
 SNAPSHOT_DATE=`eval date +%Y-%m-%d`
 echo SNAPSHOT_DATE is $SNAPSHOT_DATE
 mv windows boost-windows-$SNAPSHOT_DATE
 
-rm -f windows.zip
-zip -r windows.zip boost-windows-$SNAPSHOT_DATE
+#rm -f windows.zip
+#zip -r windows.zip boost-windows-$SNAPSHOT_DATE
 
+echo "Building .7z..."
 rm -f windows.7z
 7z a -r windows.7z boost-windows-$SNAPSHOT_DATE
 
+echo "Reverting name..."
 mv boost-windows-$SNAPSHOT_DATE windows
 
-# create the ftp script
+echo "Creating ftp script..."
 echo "dir" >windows.ftp
 echo "binary" >>windows.ftp
 
-echo "put windows.zip" >>windows.ftp
-echo "mdelete boost-windows*.zip" >>windows.ftp
-echo "rename windows.zip boost-windows-$SNAPSHOT_DATE.zip" >>windows.ftp
+#echo "put windows.zip" >>windows.ftp
+#echo "mdelete boost-windows*.zip" >>windows.ftp
+#echo "rename windows.zip boost-windows-$SNAPSHOT_DATE.zip" >>windows.ftp
 
 echo "put windows.7z" >>windows.ftp
 echo "mdelete boost-windows*.7z" >>windows.ftp
 echo "rename windows.7z boost-windows-$SNAPSHOT_DATE.7z" >>windows.ftp
-
 echo "dir" >>windows.ftp
 echo "bye" >>windows.ftp
+
+echo "Running ftp script..."
 # use cygwin ftp rather than windows ftp
 /usr/bin/ftp -v -i boost.cowic.de <windows.ftp
+
+echo "Windows snapshot complete!


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk