Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68628 - trunk/tools/build/v2/tools
From: steven_at_[hidden]
Date: 2011-02-03 15:57:11


Author: steven_watanabe
Date: 2011-02-03 15:57:09 EST (Thu, 03 Feb 2011)
New Revision: 68628
URL: http://svn.boost.org/trac/boost/changeset/68628

Log:
Update boostbook module documentation.
Text files modified:
   trunk/tools/build/v2/tools/boostbook.jam | 50 ++++++++++++++++++++++++++-------------
   1 files changed, 33 insertions(+), 17 deletions(-)

Modified: trunk/tools/build/v2/tools/boostbook.jam
==============================================================================
--- trunk/tools/build/v2/tools/boostbook.jam (original)
+++ trunk/tools/build/v2/tools/boostbook.jam 2011-02-03 15:57:09 EST (Thu, 03 Feb 2011)
@@ -7,6 +7,23 @@
 
 # This module defines rules to handle generation of documentation
 # from BoostBook sources.
+#
+# The type of output is controlled by the <format> feature which can
+# have the following values::
+#
+# * html: Generates html documention. This is the default.
+# * xhtml: Generates xhtml documentation
+# * htmlhelp: Generates html help output.
+# * onehtml: Generates a single html page.
+# * man: Generates man pages.
+# * pdf: Generates pdf documentation.
+# * ps: Generates postscript output.
+# * docbook: Generates docbook XML.
+# * fo: Generates XSL formating objects.
+# * tests: Extracts test cases from the boostbook XML.
+#
+# format is an implicit feature, so typing pdf on the command
+# line (for example) is a short-cut for format=pdf.
 
 import "class" : new ;
 import common ;
@@ -55,20 +72,21 @@
 type.register BOOSTBOOK_MAIN ;
 
 
-# Initialize BoostBook support. The parameters are:
-# docbook-xsl-dir: The DocBook XSL stylesheet directory. If not provided,
-# we use DOCBOOK_XSL_DIR from the environment (if available) or look in
-# standard locations. Otherwise, we let the XML processor load the
-# stylesheets remotely.
-#
-# docbook-dtd-dir: The DocBook DTD directory. If not provided, we use
-# DOCBOOK_DTD_DIR From the environment (if available) or look in
-# standard locations. Otherwise, we let the XML processor load the
-# DTD remotely.
-#
-# boost-book-dir: The BoostBook directory with the DTD and XSL subdirs.
-#
-rule init ( docbook-xsl-dir ? : docbook-dtd-dir ? : boostbook-dir ? )
+# Initialize BoostBook support.
+rule init (
+ docbook-xsl-dir ? # The DocBook XSL stylesheet directory. If not
+ # provided, we use DOCBOOK_XSL_DIR from the environment
+ # (if available) or look in standard locations.
+ # Otherwise, we let the XML processor load the
+ # stylesheets remotely.
+
+ : docbook-dtd-dir ? # The DocBook DTD directory. If not provided, we use
+ # DOCBOOK_DTD_DIR From the environment (if available) or
+ # look in standard locations. Otherwise, we let the XML
+ # processor load the DTD remotely.
+
+ : boostbook-dir ? # The BoostBook directory with the DTD and XSL subdirs.
+)
 {
 
   if ! $(.initialized)
@@ -527,6 +545,7 @@
 
 generators.register [ new boostbook-generator boostbook.main : : BOOSTBOOK_MAIN ] ;
 
+# Creates a boostbook target.
 rule boostbook ( target-name : sources * : requirements * : default-build * )
 {
   local project = [ project.current ] ;
@@ -577,9 +596,6 @@
 scanner.register xinclude-scanner : xsl:path ;
 type.set-scanner XML : xinclude-scanner ;
 
-#############################################################################
-# Testsuite handling
-#############################################################################
 rule boostbook-to-tests ( target : source : properties * )
 {
   local boost_root = [ modules.peek : BOOST_ROOT ] ;


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