Ticket #9245: geometry-svn.patch

File geometry-svn.patch, 5.1 KB (added by Daniel James, 9 years ago)
  • libs/geometry/doc/index/make_qbk.py

     
    1717cmd = cmd + " --output_style alt"
    1818cmd = cmd + " > generated/%s.qbk"
    1919
    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"))
     20def run_command(command):
     21    if os.system(command) != 0:
     22        raise Exception("Error running %s" % command)
    2323
    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"))
     24run_command("doxygen Doxyfile")
     25run_command(cmd % ("classboost_1_1geometry_1_1index_1_1rtree", "rtree"))
     26run_command(cmd % ("group__rtree__functions", "rtree_functions"))
    3027
    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"))
     28run_command(cmd % ("structboost_1_1geometry_1_1index_1_1linear", "rtree_linear"))
     29run_command(cmd % ("structboost_1_1geometry_1_1index_1_1quadratic", "rtree_quadratic"))
     30run_command(cmd % ("structboost_1_1geometry_1_1index_1_1rstar", "rtree_rstar"))
     31run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__linear", "rtree_dynamic_linear"))
     32run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__quadratic", "rtree_dynamic_quadratic"))
     33run_command(cmd % ("classboost_1_1geometry_1_1index_1_1dynamic__rstar", "rtree_dynamic_rstar"))
    3334
    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"))
     35run_command(cmd % ("structboost_1_1geometry_1_1index_1_1indexable", "indexable"))
     36run_command(cmd % ("structboost_1_1geometry_1_1index_1_1equal__to", "equal_to"))
    3837
    39 #os.system("b2")
     38run_command(cmd % ("group__predicates", "predicates"))
     39#run_command(cmd % ("group__nearest__relations", "nearest_relations"))
     40run_command(cmd % ("group__adaptors", "adaptors"))
     41run_command(cmd % ("group__inserters", "inserters"))
     42
     43#run_command("b2")
  • libs/geometry/doc/make_qbk.py

     
    3434cmd = cmd + " --output_member_variables false"
    3535cmd = cmd + " > generated/%s.qbk"
    3636
     37def run_command(command):
     38    if os.system(command) != 0:
     39        raise Exception("Error running %s" % command)
     40
    3741def call_doxygen():
    3842    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)
    4145    os.chdir("..")
    4246
    4347def group_to_quickbook(section):
    44     os.system(cmd % ("group__" + section.replace("_", "__"), section))
     48    run_command(cmd % ("group__" + section.replace("_", "__"), section))
    4549
    4650def 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))
    4852
    4953def 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))
    5155
    5256def 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))
    5458
    5559def 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))
    5761
    5862def strategy_to_quickbook(section):
    5963    p = section.find("::")
    6064    ns = section[:p]
    6165    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"
    6367        + ns.replace("_", "__") + "_1_1" + strategy.replace("_", "__"),
    6468        ns + "_" + strategy))
    6569       
    6670def 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))
    6872       
    6973
    7074call_doxygen()
     
    158162os.chdir("..")
    159163
    160164# Use either bjam or b2 or ../../../b2 (the last should be done on Release branch)
    161 os.system("bjam")
     165run_command("bjam")