1 | #!/bin/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 http://www.boost.org/LICENSE_1_0.txt) |
---|
8 | |
---|
9 | set -e |
---|
10 | # Do some renames/rearrangments |
---|
11 | |
---|
12 | cp -r ../v2 ../boost-build |
---|
13 | # Grab jam_src |
---|
14 | cp -r ../../jam/src ../boost-build/jam_src |
---|
15 | cd ../boost-build |
---|
16 | |
---|
17 | # This one is not fully finished |
---|
18 | rm -rf example/versioned |
---|
19 | |
---|
20 | # Remove unnecessary top-level files |
---|
21 | find . -maxdepth 1 -type f | egrep -v "roll.sh|bootstrap.jam|build-system.jam|boost_build_v2.html|boost.png|index.html|hacking.txt|site-config.jam|user-config.jam" | xargs rm -f |
---|
22 | |
---|
23 | # Prepare some more files. |
---|
24 | echo -e "boost-build kernel ;\n" > boost-build.jam |
---|
25 | |
---|
26 | # Build the documentation |
---|
27 | touch doc/project-root.jam |
---|
28 | export BOOST_BUILD_PATH=/home/ghost/Work/boost-rc/tools/build/v2 |
---|
29 | cd doc |
---|
30 | /home/ghost/Work/boost-rc/tools/jam/src/bin.linuxx86/bjam --v2 |
---|
31 | /home/ghost/Work/boost-rc/tools/jam/src/bin.linuxx86/bjam --v2 pdf |
---|
32 | cp `find bin -name "*.pdf"` ../.. |
---|
33 | mv ../../standalone.pdf ../../userman.pdf |
---|
34 | rm -rf bin |
---|
35 | cd .. |
---|
36 | |
---|
37 | # Get the boost logo. |
---|
38 | wget http://boost.sf.net/boost-build2/boost.png |
---|
39 | |
---|
40 | # Adjust the links, so they work with the standalone package |
---|
41 | perl -pi -e 's%../../../boost.png%boost.png%' index.html |
---|
42 | perl -pi -e 's%../../../doc/html/bbv2.html%doc/html/index.html%' index.html |
---|
43 | perl -pi -e 's%../../../doc/html/bbv2.installation.html%doc/html/bbv2.installation.html%' index.html |
---|
44 | |
---|
45 | # Make packages |
---|
46 | find . -name CVS | xargs rm -rf |
---|
47 | rm roll.sh |
---|
48 | chmod a+x jam_src/build.bat |
---|
49 | date >> timestamp.txt |
---|
50 | cd .. && zip -r boost-build.zip boost-build && tar --bzip2 -cf boost-build.tar.bz2 boost-build |
---|
51 | cd boost-build |
---|
52 | |
---|
53 | chmod -R u+w * |
---|
54 | # Upload docs to sourceforge |
---|
55 | perl -pi -e 's%<!-- sf logo -->%<a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=7586&type=1" width="88" height="31" border="0" alt="SourceForge.net Logo" align="right"/></a>%' index.html doc/*.html |
---|
56 | scp -r doc example *.html hacking.txt vladimir_prus@shell.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2 |
---|
57 | scp ../userman.pdf vladimir_prus@shell.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2/doc |
---|