Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49399 - trunk/tools/release
From: bdawes_at_[hidden]
Date: 2008-10-20 09:42:12


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

Log:
Get ready for 1.37.0; build docs only in the posix tree, then copy to windows tree.
Added:
   trunk/tools/release/snapshot.sh (contents, props changed)
Text files modified:
   trunk/tools/release/inspect.sh | 10 +++++++-
   trunk/tools/release/snapshot_posix.sh | 37 ++++++++++++++++++++++++++-------
   trunk/tools/release/snapshot_windows.sh | 44 +++++++++++++++++++++++++++++----------
   3 files changed, 69 insertions(+), 22 deletions(-)

Modified: trunk/tools/release/inspect.sh
==============================================================================
--- trunk/tools/release/inspect.sh (original)
+++ trunk/tools/release/inspect.sh 2008-10-20 09:42:11 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

Added: trunk/tools/release/snapshot.sh
==============================================================================
--- (empty file)
+++ trunk/tools/release/snapshot.sh 2008-10-20 09:42:11 EDT (Mon, 20 Oct 2008)
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+# © Copyright 2008 Beman Dawes
+# Distributed under the Boost Software License, Version 1.0.
+# See http://www.boost.org/LICENSE_1_0.txt
+
+./snapshot_posix.sh
+./snapshot_windows.sh
+./inspect.sh

Modified: trunk/tools/release/snapshot_posix.sh
==============================================================================
--- trunk/tools/release/snapshot_posix.sh (original)
+++ trunk/tools/release/snapshot_posix.sh 2008-10-20 09:42:11 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: trunk/tools/release/snapshot_windows.sh
==============================================================================
--- trunk/tools/release/snapshot_windows.sh (original)
+++ trunk/tools/release/snapshot_windows.sh 2008-10-20 09:42:11 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