From 09f0c3abfeb005fea96d2215c3a7f3ddabb2e3dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Tue, 21 Aug 2012 12:34:18 +0000 Subject: [PATCH] Add possiblity for packages in the package overview where top level and subdirectory diverge. --- Documentation/DoxygenLayoutPackage.xml | 6 +++--- Documentation/doc/packages.txt | 2 +- Documentation/doxyassist.xml | 20 +++++++++++++++++--- Documentation/pkglist_filter.sh | 8 +++++++- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/Documentation/DoxygenLayoutPackage.xml b/Documentation/DoxygenLayoutPackage.xml index b8830283330..7e79b8a3a28 100644 --- a/Documentation/DoxygenLayoutPackage.xml +++ b/Documentation/DoxygenLayoutPackage.xml @@ -2,14 +2,13 @@ - - + + - @@ -21,6 +20,7 @@ + diff --git a/Documentation/doc/packages.txt b/Documentation/doc/packages.txt index 00841e7e123..61bff0ea98e 100644 --- a/Documentation/doc/packages.txt +++ b/Documentation/doc/packages.txt @@ -57,7 +57,7 @@ \section PartArrangements Arrangements \package_listing{Arrangement_on_surface_2} -\package_listing{Sweep_line_2} +\package_listing{Arrangement_on_surface_2/Sweep_line_2} \package_listing{Snap_rounding_2} \package_listing{Envelope_2} diff --git a/Documentation/doxyassist.xml b/Documentation/doxyassist.xml index ed6f9ecc657..8fc6e00754f 100644 --- a/Documentation/doxyassist.xml +++ b/Documentation/doxyassist.xml @@ -31,7 +31,7 @@ namespace for the XML file to be processed properly. --> PkgDescriptionBegin{1}=<table cellpadding="2" cellspacing="0"><tr><td colspan="2"></td></tr><tr> - + STL_Extension @@ -295,8 +295,7 @@ namespace for the XML file to be processed properly. --> ../Geomview/doc/Geomview/ ./tags/Geomview.tag ../Geomview/demo - - + ../Geomview/doc/Geomview/fig @@ -559,6 +558,18 @@ namespace for the XML file to be processed properly. --> + + Sweep_line_2 + ../Arrangement_on_surface_2/doc/Sweep_line_2 + + ../Arrangement_on_surface_2/doc/Sweep_line_2 + ../Sweep_line_2/doc/Nef_3/ + ./tags/Sweep_line_2.tag + ../Arrangement_on_surface_2/doc/Sweep_line_2/fig + ../Arrangement_on_surface_2/examples + + + Nef_3 ../Nef_3/doc @@ -586,6 +597,7 @@ namespace for the XML file to be processed properly. --> ./output ./log + DoxygenLayout.xml ./tags/Manual.tag ../Convex_hull_2/examples @@ -630,6 +642,7 @@ namespace for the XML file to be processed properly. --> ../STL_Extension/doc/STL_Extension/fig ../Skin_surface_3/doc/Skin_surface_3/fig ../Snap_rounding_2/doc/Snap_rounding_2/fig + ../Arrangement_on_surface_2/doc/Sweep_line_2/fig ../Spatial_searching/doc/Spatial_searching/fig ../Segment_Delaunay_graph_2/doc/Segment_Delaunay_graph_2/fig ../Straight_skeleton_2/doc/Straight_skeleton_2/fig @@ -670,6 +683,7 @@ namespace for the XML file to be processed properly. --> ./tags/Principal_component_analysis.tag=../../CGAL.CGAL.Principal_component_analysis/html ./tags/STL_Extension.tag=../../CGAL.CGAL.STL_Extension/html ./tags/Skin_surface_3.tag=../../CGAL.CGAL.Skin_surface_3/html + ./tags/Sweep_line_2.tag=../../CGAL.CGAL.Sweep_line_2/html ./tags/Snap_rounding_2.tag=../../CGAL.CGAL.Snap_rounding_2/html ./tags/Spatial_searching.tag=../../CGAL.CGAL.Spatial_searching/html ./tags/Segment_Delaunay_graph_2.tag=../../CGAL.CGAL.Segment_Delaunay_graph_2/html diff --git a/Documentation/pkglist_filter.sh b/Documentation/pkglist_filter.sh index af914c46077..dbfb9461f25 100755 --- a/Documentation/pkglist_filter.sh +++ b/Documentation/pkglist_filter.sh @@ -4,7 +4,13 @@ while read -r line do pkg=$(echo ${line} | sed -n '/\\package_listing{[^}]*}/p' | sed 's/\\package_listing{\([^}]*\)}/\1/') if [ -n "${pkg}" ]; then - cat "../${pkg}/doc/${pkg}/PackageDescription.txt" | sed -n '/PkgDescriptionBegin/,/PkgDescriptionEnd/p' | sed "s/\(\\PkgDescriptionBegin{[^}]*\)}/\1,${pkg}}/" + top_level=${pkg%/*} + lower_level=${pkg##*/} + if [ -n "${top_level}" ]; then + cat "../${top_level}/doc/${lower_level}/PackageDescription.txt" | sed -n '/PkgDescriptionBegin/,/PkgDescriptionEnd/p' | sed "s/\(\\PkgDescriptionBegin{[^}]*\)}/\1,${lower_level}}/" + else + cat "../${pkg}/doc/${pkg}/PackageDescription.txt" | sed -n '/PkgDescriptionBegin/,/PkgDescriptionEnd/p' | sed "s/\(\\PkgDescriptionBegin{[^}]*\)}/\1,${pkg}}/" + fi else echo -E "${line}" fi