| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | set -e |
|---|
| 4 | # Do some renames/rearrangments |
|---|
| 5 | |
|---|
| 6 | cp -r ../v2 ../boost-build |
|---|
| 7 | # Grab jam_src |
|---|
| 8 | cp -r ../jam_src ../boost-build |
|---|
| 9 | cd ../boost-build |
|---|
| 10 | |
|---|
| 11 | # This one is not fully finished |
|---|
| 12 | rm -rf example/versioned |
|---|
| 13 | # This one is too low-level and misleading |
|---|
| 14 | rm -rf example/make |
|---|
| 15 | |
|---|
| 16 | # Remove unnecessary top-level files |
|---|
| 17 | 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 |
|---|
| 18 | |
|---|
| 19 | # Prepare some more files. |
|---|
| 20 | echo -e "boost-build kernel ;\n" > boost-build.jam |
|---|
| 21 | |
|---|
| 22 | # Build the documentation |
|---|
| 23 | touch doc/project-root.jam |
|---|
| 24 | export BOOST_ROOT=/home/ghost/Work/boost-rc |
|---|
| 25 | cd doc |
|---|
| 26 | /home/ghost/Work/boost/tools/build/jam_src/bin.linuxx86/bjam --v2 |
|---|
| 27 | /home/ghost/Work/boost/tools/build/jam_src/bin.linuxx86/bjam --v2 pdf |
|---|
| 28 | cp `find bin -name "*.pdf"` ../.. |
|---|
| 29 | rm -rf bin |
|---|
| 30 | cd .. |
|---|
| 31 | |
|---|
| 32 | # Get the boost logo. |
|---|
| 33 | wget http://boost.org/boost-build2/boost.png |
|---|
| 34 | |
|---|
| 35 | # Adjust the links, so they work with the standalone package |
|---|
| 36 | perl -pi -e 's%../../../boost.png%boost.png%' index.html |
|---|
| 37 | perl -pi -e 's%../../../doc/html/bbv2.html%doc/html/index.html%' index.html |
|---|
| 38 | perl -pi -e 's%../../../doc/html/bbv2.installation.html%doc/html/bbv2.installation.html%' index.html |
|---|
| 39 | |
|---|
| 40 | # Make packages |
|---|
| 41 | find . -name CVS | xargs rm -rf |
|---|
| 42 | rm roll.sh |
|---|
| 43 | chmod a+x jam_src/build.bat |
|---|
| 44 | cd .. && zip -r boost-build.zip boost-build && tar --bzip2 -cf boost-build.tar.bz2 boost-build |
|---|
| 45 | cd boost-build |
|---|
| 46 | |
|---|
| 47 | chmod -R u+w * |
|---|
| 48 | # Upload docs to sourceforge |
|---|
| 49 | 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 |
|---|
| 50 | scp -r doc example *.html hacking.txt vladimir_prus@shell.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2 |
|---|
| 51 | scp ../userman.pdf vladimir_prus@shell.sourceforge.net:/home/groups/b/bo/boost/htdocs/boost-build2/doc |
|---|