Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50802 - trunk/tools/release
From: bdawes_at_[hidden]
Date: 2009-01-27 10:10:44


Author: bemandawes
Date: 2009-01-27 10:10:44 EST (Tue, 27 Jan 2009)
New Revision: 50802
URL: http://svn.boost.org/trac/boost/changeset/50802

Log:
tools/releases add build_release_packages.bat
Added:
   trunk/tools/release/build_release_packages.bat (contents, props changed)
Text files modified:
   trunk/tools/release/build_release_packages.sh | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Added: trunk/tools/release/build_release_packages.bat
==============================================================================
--- (empty file)
+++ trunk/tools/release/build_release_packages.bat 2009-01-27 10:10:44 EST (Tue, 27 Jan 2009)
@@ -0,0 +1,46 @@
+@echo off
+rem Build release packages
+
+rem Copyright Beman Dawes 2009
+
+rem Distributed under the Boost Software License, Version 1.0.
+rem See http://www.boost.org/LICENSE_1_0.txt
+
+echo Build release packages...
+
+if not %1$==$ goto ok
+echo Usage: build_release_packages release-name
+echo Example: build_release_packages boost_1_38_0_Beta1
+goto done
+
+:ok
+
+echo Preping posix...
+rmdir /s /q posix\bin.v2 2>nul
+rmdir /s /q posix\dist 2>nul
+ren posix %1
+del %1.tar.gz 2>nul
+del %1.tar.bz2 2>nul
+echo Creating gz...
+tar cfz %1.tar.gz %1
+echo Creating bz2...
+gzip -d -c %1.tar.gz | bzip2 >%1.tar.bz2
+echo Cleaning up posix...
+ren %1 posix
+
+echo Preping windows...
+rmdir /s /q windows\bin.v2 2>nul
+rmdir /s /q windows\dist 2>nul
+ren windows %1
+del %1.zip 2>nul
+del %1.7z 2>nul
+echo Creating zip...
+zip -r -q %1.zip %1
+echo Creating 7z...
+7z a -r -bd %1.7z %1
+echo Cleaning up windows...
+ren %1 windows
+
+echo Build release packages complete
+
+:done

Modified: trunk/tools/release/build_release_packages.sh
==============================================================================
--- trunk/tools/release/build_release_packages.sh (original)
+++ trunk/tools/release/build_release_packages.sh 2009-01-27 10:10:44 EST (Tue, 27 Jan 2009)
@@ -22,7 +22,7 @@
 echo "creating gz..."
 tar cfz $1.tar.gz $1
 echo "creating bz2..."
-gunzip -c $1.tar.gz | bzip2 >$1.tar.bz2
+gzip -c $1.tar.gz | bzip2 >$1.tar.bz2
 echo "cleaning up..."
 mv $1 posix
 


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