]>
Commit | Line | Data |
---|---|---|
1 | #! /usr/bin/env python | |
2 | # -*- coding: utf-8 -*- | |
3 | # =========================================================================== | |
4 | # Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands. | |
5 | # Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. | |
6 | # | |
7 | # Use, modification and distribution is subject to the Boost Software License, | |
8 | # Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
9 | # http://www.boost.org/LICENSE_1_0.txt)9 | |
10 | # ============================================================================ | |
11 | ||
12 | import os, sys | |
13 | ||
14 | cmd = "doxygen_xml2qbk" | |
15 | cmd = cmd + " --xml xml/%s.xml" | |
16 | cmd = cmd + " --start_include boost/" | |
17 | cmd = cmd + " --output_style alt" | |
18 | cmd = cmd + " > generated/%s.qbk" | |
19 | ||
20 | def run_command(command): | |
21 | if os.system(command) != 0: | |
22 | raise Exception("Error running %s" % command) | |
23 | ||
24 | def remove_all_files(dir): | |
25 | if os.path.exists(dir): | |
26 | for f in os.listdir(dir): | |
27 | os.remove(dir+f) | |
28 | ||
29 | remove_all_files("xml/") | |
30 | ||
31 | run_command("doxygen Doxyfile") | |
32 | run_command(cmd % ("classboost_1_1geometry_1_1index_1_1rtree", "rtree")) | |
33 | run_command(cmd % ("group__rtree__functions", "rtree_functions")) | |
34 | ||
35 | run_command(cmd % ("structboost_1_1geometry_1_1index_1_1linear", "rtree_linear")) | |
36 | run_command(cmd % ("structboost_1_1geometry_1_1index_1_1quadratic", "rtree_quadratic")) | |
37 | run_command(cmd % ("structboost_1_1geometry_1_1index_1_1rstar", "rtree_rstar")) | |
38 | run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__linear", "rtree_dynamic_linear")) | |
39 | run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__quadratic", "rtree_dynamic_quadratic")) | |
40 | run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__rstar", "rtree_dynamic_rstar")) | |
41 | ||
42 | run_command(cmd % ("structboost_1_1geometry_1_1index_1_1indexable", "indexable")) | |
43 | run_command(cmd % ("structboost_1_1geometry_1_1index_1_1equal__to", "equal_to")) | |
44 | ||
45 | run_command(cmd % ("group__predicates", "predicates")) | |
46 | #run_command(cmd % ("group__nearest__relations", "nearest_relations")) | |
47 | run_command(cmd % ("group__adaptors", "adaptors")) | |
48 | run_command(cmd % ("group__inserters", "inserters")) | |
49 | ||
50 | #run_command("b2") |