]>
Commit | Line | Data |
---|---|---|
b32b8144 | 1 | #!/usr/bin/env bash |
7c673cae FG |
2 | |
3 | # Copyright 2014 Vladimir Prus | |
4 | # Distributed under the Boost Software License, Version 1.0. | |
5 | # (See accompanying file LICENSE_1_0.txt or copy at | |
6 | # http://www.boost.org/LICENSE_1_0.txt) | |
7 | ||
8 | set -e | |
9 | ||
10 | # Build the documentation | |
11 | touch doc/jamroot.jam | |
12 | export BOOST_BUILD_PATH=`pwd` | |
13 | export BOOST_ROOT=/home/ghost/Sources/boost | |
14 | ./bootstrap.sh | |
15 | cd doc | |
16 | ../b2 | |
17 | ||
18 | find . -type f -iname "*.html" | while read i; do | |
19 | echo "Processing: $i" | |
20 | sed -i "s#</body>#\ | |
21 | <script>\n\ | |
22 | (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n\ | |
23 | (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n\ | |
24 | m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n\ | |
25 | })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\ | |
26 | \n\ | |
27 | ga('create', 'UA-2917240-2', 'auto');\n\ | |
28 | ga('send', 'pageview');\n\ | |
29 | \n\ | |
30 | </script>\n\ | |
31 | </body>#g" "$i" | |
32 | ||
33 | done | |
34 |