]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/tools/build/scripts/roll.sh
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / scripts / roll.sh
CommitLineData
b32b8144 1#!/usr/bin/env bash
7c673cae
FG
2
3# Copyright 2004 Aleksey Gurtovoy
4# Copyright 2006 Rene Rivera
5# Copyright 2003, 2004, 2005, 2006 Vladimir Prus
6# Distributed under the Boost Software License, Version 1.0.
7# (See accompanying file LICENSE_1_0.txt or copy at
8# http://www.boost.org/LICENSE_1_0.txt)
9
10set -e
11
12# Capture the version
13revision=`svnversion .`
14echo "SVN Revision $revision" >> timestamp.txt
15date >> timestamp.txt
16
17# Remove unnecessary top-level files
18find . -maxdepth 1 -type f | egrep -v "boost-build.jam|timestamp.txt|roll.sh|bootstrap.jam|build-system.jam|boost_build.png|index.html|hacking.txt|site-config.jam|user-config.jam|bootstrap.sh|bootstrap.bat|Jamroot.jam" | xargs rm -f
19
20# Build the documentation
21touch doc/jamroot.jam
22export BOOST_BUILD_PATH=`pwd`
23./bootstrap.sh
24cd doc
25../bjam --v2
26../bjam --v2 pdf
27cp `find bin -name "*.pdf"` ../..
28mv ../../standalone.pdf ../../userman.pdf
29cp ../../userman.pdf .
30rm -rf bin
31cd ..
32rm bjam
33
34# Get the boost logo.
35wget http://boost.sf.net/boost-build2/boost.png
36
37# Adjust the links, so they work with the standalone package
38perl -pi -e 's%../../../boost.png%boost.png%' index.html
39perl -pi -e 's%../../../doc/html/bbv2.html%doc/html/index.html%' index.html
40perl -pi -e 's%../../../doc/html/bbv2.installation.html%doc/html/bbv2.installation.html%' index.html
41
42# Make packages
43find . -name ".svn" | xargs rm -rf
44rm roll.sh
45chmod a+x engine/build.bat
46cd .. && zip -r boost-build.zip boost-build && tar --bzip2 -cf boost-build.tar.bz2 boost-build
47# Copy packages to a location where they are grabbed for beta.boost.org
48cp userman.pdf boost-build.zip boost-build.tar.bz2 ~/public_html/boost_build_nightly
49cd boost-build
50
51chmod -R u+w *
52# Upload docs to sourceforge
53x=`cat <<EOF
54<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
55</script>
56<script type="text/javascript">
57_uacct = "UA-2917240-2";
58urchinTracker();
59</script>
60EOF`
61echo $x
62perl -pi -e "s|</body>|$x</body>|" index.html `find doc -name '*.html'`
63scp -r doc example boost_build.png *.html hacking.txt vladimir_prus,boost@web.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2
64scp ../userman.pdf vladimir_prus,boost@web.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2/doc