Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66084 - sandbox/geometry/libs/geometry/doc/qbk
From: mateusz_at_[hidden]
Date: 2010-10-18 19:36:44


Author: mloskot
Date: 2010-10-18 19:36:38 EDT (Mon, 18 Oct 2010)
New Revision: 66084
URL: http://svn.boost.org/trac/boost/changeset/66084

Log:
[geometry] Pythonize make_qbk.py script
Text files modified:
   sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py | 93 ++++++++++++++++++---------------------
   1 files changed, 44 insertions(+), 49 deletions(-)

Modified: sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py
==============================================================================
--- sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py (original)
+++ sandbox/geometry/libs/geometry/doc/qbk/make_qbk.py 2010-10-18 19:36:38 EDT (Mon, 18 Oct 2010)
@@ -1,3 +1,5 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
 # ===========================================================================
 # Copyright (c) 1995-2010 Barend Gehrels, Geodan, Amsterdam, the Netherlands.
 # Copyright (c) 2008-2010 Bruno Lalande, Paris, France.
@@ -5,7 +7,7 @@
 #
 # 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)
+# http://www.boost.org/LICENSE_1_0.txt)9
 # ============================================================================
 
 # Note, all of this is very experimental
@@ -13,66 +15,59 @@
 
 import os
 
-
 # if a%1 == askip_doxygen goto skip_doxygen
 
 os.chdir("..");
-os.system("doxygen");
-os.chdir("qbk");
+os.system("doxygen")
+os.chdir("qbk")
 
 #skip_doxygen
 
 cmd="doxygen_xml2qbk ../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__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__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 % ("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 % ("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 % ("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(cmd % ("structboost_1_1geometry_1_1closing__iterator", "closing_iterator"))
 
 os.system("bjam")
-
-


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