mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-12 12:12:10 +00:00
Added python script which will replace batch/shell scripts
[SVN r65375]
This commit is contained in:
78
doc/qbk/make_qbk.py
Executable file
78
doc/qbk/make_qbk.py
Executable file
@@ -0,0 +1,78 @@
|
||||
# ===========================================================================
|
||||
# Copyright (c) 1995-2010 Barend Gehrels, Geodan, Amsterdam, the Netherlands.
|
||||
# Copyright (c) 2008-2010 Bruno Lalande, Paris, France.
|
||||
# Copyright (c) 2009-2010 Mateusz Loskot (mateusz@loskot.net), London, UK
|
||||
#
|
||||
# Use, modification and distribution is subject to the Boost Software License,
|
||||
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
# http://www.boost.org/LICENSE_1_0.txt)
|
||||
# ============================================================================
|
||||
|
||||
# Note, all of this is very experimental
|
||||
# BSG, Aug 1, 2010
|
||||
|
||||
import os
|
||||
|
||||
|
||||
# if a%1 == askip_doxygen goto skip_doxygen
|
||||
|
||||
os.chdir("..");
|
||||
os.system("doxygen");
|
||||
os.chdir("qbk");
|
||||
|
||||
#skip_doxygen
|
||||
|
||||
cmd="doxygen_xml2qbk.exe ../doxygen_output/xml/%s.xml ../../../../ boost/geometry/geometry.hpp boost/geometry/geometries/geometries.hpp boost/geometry/multi/multi.hpp > reference/%s.qbk"
|
||||
|
||||
# Algorithms
|
||||
os.system(cmd % ("group__area", "area"));
|
||||
os.system(cmd % ("group__buffer", "buffer"));
|
||||
os.system(cmd % ("group__centroid", "centroid"));
|
||||
os.system(cmd % ("group__convex__hull", "convex_hull"));
|
||||
os.system(cmd % ("group__dissolve", "dissolve"));
|
||||
os.system(cmd % ("group__envelope", "envelope"));
|
||||
os.system(cmd % ("group__length", "length"));
|
||||
os.system(cmd % ("group__num__geometries", "num_geometries"));
|
||||
os.system(cmd % ("group__num__interior__rings", "num_interior_rings"));
|
||||
os.system(cmd % ("group__num__points", "num_points"));
|
||||
os.system(cmd % ("group__perimeter", "perimeter"));
|
||||
os.system(cmd % ("group__reverse", "reverse"));
|
||||
os.system(cmd % ("group__simplify", "simplify"));
|
||||
os.system(cmd % ("group__unique", "unique"));
|
||||
|
||||
|
||||
# os.system(cmd % ("group__access.xml", "access.qbk"));
|
||||
# os.system(cmd % ("group__combine.xml", "combine.qbk"));
|
||||
# os.system(cmd % ("group__convert.xml", "convert.qbk"));
|
||||
# os.system(cmd % ("group__difference.xml", "difference.qbk"));
|
||||
# os.system(cmd % ("group__disjoint.xml", "disjoint.qbk"));
|
||||
|
||||
os.system(cmd % ("group__distance", "distance"));
|
||||
|
||||
# os.system(cmd % ("group__equals.xml", "equals.qbk"));
|
||||
# os.system(cmd % ("group__for__each.xml", "for_each.qbk"));
|
||||
|
||||
|
||||
os.system(cmd % ("group__intersection", "intersection"));
|
||||
os.system(cmd % ("group__intersects", "intersects"));
|
||||
|
||||
# os.system(cmd % ("group__overlaps.xml", "overlaps.qbk"));
|
||||
# os.system(cmd % ("group__sym__difference.xml", "sym_difference.qbk"));
|
||||
# os.system(cmd % ("group__transform.xml", "transform.qbk"));
|
||||
# os.system(cmd % ("group__union.xml", "union.qbk"));
|
||||
|
||||
|
||||
os.system(cmd % ("group__within", "within"));
|
||||
os.system(cmd % ("group__register", "register"));
|
||||
|
||||
os.system(cmd % ("classboost_1_1geometry_1_1point", "point"));
|
||||
os.system(cmd % ("classboost_1_1geometry_1_1point__xy", "point_xy"));
|
||||
|
||||
#os.system(cmd % ("classboost_1_1geometry_1_1concept_1_1_point.xml", "concept_point.qbk"));
|
||||
|
||||
os.system(cmd % ("structboost_1_1geometry_1_1closing__iterator", "closing_iterator"));
|
||||
|
||||
|
||||
os.system("bjam --toolset=msvc --without-python")
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ Procedure to create documentation using Doxygen, QuickBook and doxygen_xml2qbk
|
||||
2) install QuickBook using http://www.boost.org/doc/libs/1_44_0/doc/html/quickbook/install.html#quickbook.install.linux
|
||||
3) compile doxygen_xml2qbk, in .../boost/sandbox/geometry/other/programs/doxygen_xml2qbk
|
||||
4) put binary somewhere, e.g. in /usr/local/bin/doxygen_xml2qbk
|
||||
5) execute the batchfile or shellscript
|
||||
5) execute python file "make_qbk.py"
|
||||
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user