Boost logo

Boost-Commit :

From: grafikrobot_at_[hidden]
Date: 2007-08-27 17:05:35


Author: grafik
Date: 2007-08-27 17:05:35 EDT (Mon, 27 Aug 2007)
New Revision: 39020
URL: http://svn.boost.org/trac/boost/changeset/39020

Log:
Tarball generation script.
Added:
   trunk/tools/regression/boost_svn_export_archive.sh (contents, props changed)

Added: trunk/tools/regression/boost_svn_export_archive.sh
==============================================================================
--- (empty file)
+++ trunk/tools/regression/boost_svn_export_archive.sh 2007-08-27 17:05:35 EDT (Mon, 27 Aug 2007)
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+export PATH=/bin:/usr/bin:${PATH}
+
+timestamp=`date +%F-%H-%M-%S-%Z`
+branch=$1
+tag=boost-${1/\/*}-${timestamp}
+export_dir=boost-$$
+
+rm_c()
+{
+ while read f; do
+ rm -f ${f}
+ done
+}
+svn_export()
+{
+ svn export file:///home/subversion/boost/${branch} ${tag} \
+ | cut --bytes=6- \
+ | star -c -D -to-stdout -d artype=tar list=- 2>/dev/null \
+ | bzip2 -3 -c \
+ | tee $1 \
+ | tar -jtf - \
+ | rm_c
+}
+
+cd /tmp
+rm -rf ${export_dir}
+mkdir ${export_dir}
+cd ${export_dir}
+mkfifo out.tbz2
+svn_export out.tbz2 &
+#cat out.tbz2 > ../${tag}.tar.bz2
+cat out.tbz2
+cd /tmp
+rm -rf ${export_dir}
+


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