summaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-07-28 00:33:07 +0000
committerjbj <devnull@localhost>2001-07-28 00:33:07 +0000
commitc6fba63aca2cbee02848e5913cddc730e43cee8e (patch)
tree48cf5e6352a407c7d53ae6cbfbdb995d35f6f965 /doc/manual
parent03e498c64e1cca77b862f0b37549cd7c4a598149 (diff)
downloadrpm-c6fba63aca2cbee02848e5913cddc730e43cee8e.tar.gz
rpm-c6fba63aca2cbee02848e5913cddc730e43cee8e.tar.bz2
rpm-c6fba63aca2cbee02848e5913cddc730e43cee8e.zip
- fix: --noscripts is another multimode option.
- add tmpdir to configure db3 tmpdir into chroot tree. - permit lazy db opens within chroot. - fix: diddle dbenv path to accomodate backing store reopen in chroot. CVS patchset: 4990 CVS date: 2001/07/28 00:33:07
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/macros28
1 files changed, 26 insertions, 2 deletions
diff --git a/doc/manual/macros b/doc/manual/macros
index d296ca1b2..ff6bd3494 100644
--- a/doc/manual/macros
+++ b/doc/manual/macros
@@ -146,7 +146,31 @@ or
The %{...} form allows you to place the expansion adjacent to other text.
The %<name> form, if a parameterized macro, will do argc/argv processing
-of the rest of the line as described above.
+of the rest of the line as described above. Normally you will likely want
+to invoke a parameterized macro by using the %<name> form so that
+parameters are expanded properly.
+
+Example:
+\verbatim
+ %define mymacro() (echo -n "My arg is %1" ; sleep %1 ; echo done.)
+\endverbatim
+
+Usage:
+
+\verbatim
+ %mymacro 5
+\endverbatim
+
+This expands to:
+
+\verbatim
+ (echo -n "My arg is 5" ; sleep 5 ; echo done.)
+\endverbatim
+
+This will cause all occurances of %1 in the macro definition to be
+replaced by the first argument to the macro, but only if the macro
+is invoked as "%mymacro 5". Invoking as "%{mymacro} 5" will not work
+as desired in this case.
\subsection macros_commandline Command Line Options
@@ -227,7 +251,7 @@ packaging similar to the autoconf variables that are used in building packages:
%_libdir %{_exec_prefix}/lib
%_includedir %{_prefix}/include
%_oldincludedir /usr/include
- %_infodir %{_prefix}/include
+ %_infodir %{_prefix}/info
%_mandir %{_prefix}/man
\endverbatim