]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/scripts/roll.sh
update sources to v12.2.3
[ceph.git] / ceph / src / boost / tools / build / scripts / roll.sh
1 #!/usr/bin/env bash
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
10 set -e
11
12 # Capture the version
13 revision=`svnversion .`
14 echo "SVN Revision $revision" >> timestamp.txt
15 date >> timestamp.txt
16
17 # Remove unnecessary top-level files
18 find . -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
21 touch doc/jamroot.jam
22 export BOOST_BUILD_PATH=`pwd`
23 ./bootstrap.sh
24 cd doc
25 ../bjam --v2
26 ../bjam --v2 pdf
27 cp `find bin -name "*.pdf"` ../..
28 mv ../../standalone.pdf ../../userman.pdf
29 cp ../../userman.pdf .
30 rm -rf bin
31 cd ..
32 rm bjam
33
34 # Get the boost logo.
35 wget http://boost.sf.net/boost-build2/boost.png
36
37 # Adjust the links, so they work with the standalone package
38 perl -pi -e 's%../../../boost.png%boost.png%' index.html
39 perl -pi -e 's%../../../doc/html/bbv2.html%doc/html/index.html%' index.html
40 perl -pi -e 's%../../../doc/html/bbv2.installation.html%doc/html/bbv2.installation.html%' index.html
41
42 # Make packages
43 find . -name ".svn" | xargs rm -rf
44 rm roll.sh
45 chmod a+x engine/build.bat
46 cd .. && 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
48 cp userman.pdf boost-build.zip boost-build.tar.bz2 ~/public_html/boost_build_nightly
49 cd boost-build
50
51 chmod -R u+w *
52 # Upload docs to sourceforge
53 x=`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";
58 urchinTracker();
59 </script>
60 EOF`
61 echo $x
62 perl -pi -e "s|</body>|$x</body>|" index.html `find doc -name '*.html'`
63 scp -r doc example boost_build.png *.html hacking.txt vladimir_prus,boost@web.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2
64 scp ../userman.pdf vladimir_prus,boost@web.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2/doc