Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65375 - sandbox/geometry/libs/geometry/doc/qbk
From: barend.gehrels_at_[hidden]
Date: 2010-09-10 13:34:07


Author: barendgehrels
Date: 2010-09-10 13:34:05 EDT (Fri, 10 Sep 2010)
New Revision: 65375
URL: http://svn.boost.org/trac/boost/changeset/65375

Log:
Added python script which will replace batch/shell scripts
Added:
   sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py (contents, props changed)
Text files modified:
   sandbox/geometry/libs/geometry/doc/qbk/readme.txt | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Added: sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py
==============================================================================
--- (empty file)
+++ sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py 2010-09-10 13:34:05 EDT (Fri, 10 Sep 2010)
@@ -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_at_[hidden]), 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")
+
+

Modified: sandbox/geometry/libs/geometry/doc/qbk/readme.txt
==============================================================================
--- sandbox/geometry/libs/geometry/doc/qbk/readme.txt (original)
+++ sandbox/geometry/libs/geometry/doc/qbk/readme.txt 2010-09-10 13:34:05 EDT (Fri, 10 Sep 2010)
@@ -28,6 +28,6 @@
 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"
 
 -


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk