Ticket #9245: geometry-svn.patch
File geometry-svn.patch, 5.1 KB (added by , 9 years ago) |
---|
-
libs/geometry/doc/index/make_qbk.py
17 17 cmd = cmd + " --output_style alt" 18 18 cmd = cmd + " > generated/%s.qbk" 19 19 20 os.system("doxygen Doxyfile") 21 os.system(cmd % ("classboost_1_1geometry_1_1index_1_1rtree", "rtree")) 22 os.system(cmd % ("group__rtree__functions", "rtree_functions"))20 def run_command(command): 21 if os.system(command) != 0: 22 raise Exception("Error running %s" % command) 23 23 24 os.system(cmd % ("structboost_1_1geometry_1_1index_1_1linear", "rtree_linear")) 25 os.system(cmd % ("structboost_1_1geometry_1_1index_1_1quadratic", "rtree_quadratic")) 26 os.system(cmd % ("structboost_1_1geometry_1_1index_1_1rstar", "rtree_rstar")) 27 os.system(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__linear", "rtree_dynamic_linear")) 28 os.system(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__quadratic", "rtree_dynamic_quadratic")) 29 os.system(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__rstar", "rtree_dynamic_rstar")) 24 run_command("doxygen Doxyfile") 25 run_command(cmd % ("classboost_1_1geometry_1_1index_1_1rtree", "rtree")) 26 run_command(cmd % ("group__rtree__functions", "rtree_functions")) 30 27 31 os.system(cmd % ("structboost_1_1geometry_1_1index_1_1indexable", "indexable")) 32 os.system(cmd % ("structboost_1_1geometry_1_1index_1_1equal__to", "equal_to")) 28 run_command(cmd % ("structboost_1_1geometry_1_1index_1_1linear", "rtree_linear")) 29 run_command(cmd % ("structboost_1_1geometry_1_1index_1_1quadratic", "rtree_quadratic")) 30 run_command(cmd % ("structboost_1_1geometry_1_1index_1_1rstar", "rtree_rstar")) 31 run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__linear", "rtree_dynamic_linear")) 32 run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__quadratic", "rtree_dynamic_quadratic")) 33 run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__rstar", "rtree_dynamic_rstar")) 33 34 34 os.system(cmd % ("group__predicates", "predicates")) 35 #os.system(cmd % ("group__nearest__relations", "nearest_relations")) 36 os.system(cmd % ("group__adaptors", "adaptors")) 37 os.system(cmd % ("group__inserters", "inserters")) 35 run_command(cmd % ("structboost_1_1geometry_1_1index_1_1indexable", "indexable")) 36 run_command(cmd % ("structboost_1_1geometry_1_1index_1_1equal__to", "equal_to")) 38 37 39 #os.system("b2") 38 run_command(cmd % ("group__predicates", "predicates")) 39 #run_command(cmd % ("group__nearest__relations", "nearest_relations")) 40 run_command(cmd % ("group__adaptors", "adaptors")) 41 run_command(cmd % ("group__inserters", "inserters")) 42 43 #run_command("b2") -
libs/geometry/doc/make_qbk.py
34 34 cmd = cmd + " --output_member_variables false" 35 35 cmd = cmd + " > generated/%s.qbk" 36 36 37 def run_command(command): 38 if os.system(command) != 0: 39 raise Exception("Error running %s" % command) 40 37 41 def call_doxygen(): 38 42 os.chdir("doxy"); 39 os.system("rm -f doxygen_output/xml/*.xml")40 os.system(doxygen_cmd)43 run_command("rm -f doxygen_output/xml/*.xml") 44 run_command(doxygen_cmd) 41 45 os.chdir("..") 42 46 43 47 def group_to_quickbook(section): 44 os.system(cmd % ("group__" + section.replace("_", "__"), section))48 run_command(cmd % ("group__" + section.replace("_", "__"), section)) 45 49 46 50 def model_to_quickbook(section): 47 os.system(cmd % ("classboost_1_1geometry_1_1model_1_1" + section.replace("_", "__"), section))51 run_command(cmd % ("classboost_1_1geometry_1_1model_1_1" + section.replace("_", "__"), section)) 48 52 49 53 def model_to_quickbook2(classname, section): 50 os.system(cmd % ("classboost_1_1geometry_1_1model_1_1" + classname, section))54 run_command(cmd % ("classboost_1_1geometry_1_1model_1_1" + classname, section)) 51 55 52 56 def struct_to_quickbook(section): 53 os.system(cmd % ("structboost_1_1geometry_1_1" + section.replace("_", "__"), section))57 run_command(cmd % ("structboost_1_1geometry_1_1" + section.replace("_", "__"), section)) 54 58 55 59 def class_to_quickbook(section): 56 os.system(cmd % ("classboost_1_1geometry_1_1" + section.replace("_", "__"), section))60 run_command(cmd % ("classboost_1_1geometry_1_1" + section.replace("_", "__"), section)) 57 61 58 62 def strategy_to_quickbook(section): 59 63 p = section.find("::") 60 64 ns = section[:p] 61 65 strategy = section[p+2:] 62 os.system(cmd % ("classboost_1_1geometry_1_1strategy_1_1"66 run_command(cmd % ("classboost_1_1geometry_1_1strategy_1_1" 63 67 + ns.replace("_", "__") + "_1_1" + strategy.replace("_", "__"), 64 68 ns + "_" + strategy)) 65 69 66 70 def cs_to_quickbook(section): 67 os.system(cmd % ("structboost_1_1geometry_1_1cs_1_1" + section.replace("_", "__"), section))71 run_command(cmd % ("structboost_1_1geometry_1_1cs_1_1" + section.replace("_", "__"), section)) 68 72 69 73 70 74 call_doxygen() … … 158 162 os.chdir("..") 159 163 160 164 # Use either bjam or b2 or ../../../b2 (the last should be done on Release branch) 161 os.system("bjam") 165 run_command("bjam")