From 2d080c5a584e97db33b76300050a0fd79ad3ba58 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sat, 31 Mar 2012 20:38:35 +0000 Subject: [PATCH] Oops. Use the right attribute. [SVN r77676] --- doc/src/reference.xml | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/doc/src/reference.xml b/doc/src/reference.xml index 450561c30..4869544bb 100644 --- a/doc/src/reference.xml +++ b/doc/src/reference.xml @@ -1830,35 +1830,35 @@ using fop : fop-command : binding - rule binding ( module-name ) + rule binding ( module-name ) Returns the filesystem binding of the given module. For example, a module can get its own location with: - me = [ modules.binding $(__name__) ] ; + me = [ modules.binding $(__name__) ] ; poke - rule poke ( module-name ? : variables + : value * ) + rule poke ( module-name ? : variables + : value * ) Sets the module-local value of a variable. For example, to set a variable in the global module: - modules.poke : ZLIB_INCLUDE : /usr/local/include ; + modules.poke : ZLIB_INCLUDE : /usr/local/include ; peek - rule peek ( module-name ? : variables + ) + rule peek ( module-name ? : variables + ) Returns the module-local value of a variable. For example, to read a variable from the global module: - local ZLIB_INCLUDE = [ modules.peek : ZLIB_INCLUDE ] ; + local ZLIB_INCLUDE = [ modules.peek : ZLIB_INCLUDE ] ; call-in - rule call-in ( module-name ? : rule-name args * : * ) + rule call-in ( module-name ? : rule-name args * : * ) Call the given rule locally in the given module. Use this for rules accepting rule names as arguments, so that the passed rule may be invoked in the context of the rule's @@ -1867,7 +1867,8 @@ using fop : fop-command : rules called this way may accept at most 8 parameters. Example: - rule filter ( f : values * ) + +rule filter ( f : values * ) { local m = [ CALLER_MODULE ] ; local result ; @@ -1879,13 +1880,14 @@ using fop : fop-command : +} + load - rule load ( module-name : filename ? : search * ) + rule load ( module-name : filename ? : search * ) Load the indicated module if it is not already loaded. @@ -1910,7 +1912,7 @@ using fop : fop-command : import - rule import ( module-names + : rules-opt * : rename-opt * ) + rule import ( module-names + : rules-opt * : rename-opt * ) Load the indicated module and import rule names into the current module. Any members of rules-opt will be available without qualification in the caller's module. Any @@ -1923,16 +1925,18 @@ using fop : fop-command : The import rule is available without qualification in all modules. Examples: - import path ; + +import path ; import path : * ; import path : join ; -import path : native make : native-path make-path ; +import path : native make : native-path make-path ; + clone-rules - rule clone-rules ( source-module target-module ) + rule clone-rules ( source-module target-module ) Define exported copies in $(target-module) of all rules exported from $(source-module). Also make them available in the global module with qualification,