summaryrefslogtreecommitdiff
path: root/docs/autodocifier.pl
diff options
context:
space:
mode:
authorEric Andersen2001-03-15 18:14:25 +0000
committerEric Andersen2001-03-15 18:14:25 +0000
commit0d3a02eba76772e59c7832da6108776f576e9f1c (patch)
tree48d31f686c050abe08cce28c6a1e25c5695c2b3f /docs/autodocifier.pl
parent670bea210e924b46b7cefc7036550dfb20437f5e (diff)
downloadbusybox-0d3a02eba76772e59c7832da6108776f576e9f1c.zip
busybox-0d3a02eba76772e59c7832da6108776f576e9f1c.tar.gz
Update the documentation so examples are autoincluded in the output text.
Fix up docs/busybox.pod with the latest autogenerated output. -Erik
Diffstat (limited to 'docs/autodocifier.pl')
-rwxr-xr-xdocs/autodocifier.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index 9e18dc3..e967568 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -62,6 +62,11 @@ sub pod_for_usage {
}
my $full = join("\n", @f1);
+ # prepare notes if they exists
+ my $notes = (defined $usage->{notes})
+ ? "$usage->{notes}\n\n"
+ : "";
+
# prepare example if one exists
my $example = (defined $usage->{example})
? "Example:\n\n$usage->{example}\n\n"
@@ -74,6 +79,7 @@ sub pod_for_usage {
"\n\n" .
$full .
"\n\n" .
+ $notes .
$example.
"-------------------------------".
"\n\n"
@@ -216,4 +222,4 @@ John BEPPU <beppu@lineo.com>
=cut
-# $Id: autodocifier.pl,v 1.14 2001/03/06 19:25:25 beppu Exp $
+# $Id: autodocifier.pl,v 1.15 2001/03/15 18:14:25 andersen Exp $