diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-03-15 18:14:25 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-03-15 18:14:25 +0000 |
commit | 0d3a02eba76772e59c7832da6108776f576e9f1c (patch) | |
tree | 48d31f686c050abe08cce28c6a1e25c5695c2b3f /docs/autodocifier.pl | |
parent | 670bea210e924b46b7cefc7036550dfb20437f5e (diff) | |
download | busybox-w32-0d3a02eba76772e59c7832da6108776f576e9f1c.tar.gz busybox-w32-0d3a02eba76772e59c7832da6108776f576e9f1c.tar.bz2 busybox-w32-0d3a02eba76772e59c7832da6108776f576e9f1c.zip |
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-x | docs/autodocifier.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index 9e18dc3c8..e967568e1 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -62,6 +62,11 @@ sub pod_for_usage { | |||
62 | } | 62 | } |
63 | my $full = join("\n", @f1); | 63 | my $full = join("\n", @f1); |
64 | 64 | ||
65 | # prepare notes if they exists | ||
66 | my $notes = (defined $usage->{notes}) | ||
67 | ? "$usage->{notes}\n\n" | ||
68 | : ""; | ||
69 | |||
65 | # prepare example if one exists | 70 | # prepare example if one exists |
66 | my $example = (defined $usage->{example}) | 71 | my $example = (defined $usage->{example}) |
67 | ? "Example:\n\n$usage->{example}\n\n" | 72 | ? "Example:\n\n$usage->{example}\n\n" |
@@ -74,6 +79,7 @@ sub pod_for_usage { | |||
74 | "\n\n" . | 79 | "\n\n" . |
75 | $full . | 80 | $full . |
76 | "\n\n" . | 81 | "\n\n" . |
82 | $notes . | ||
77 | $example. | 83 | $example. |
78 | "-------------------------------". | 84 | "-------------------------------". |
79 | "\n\n" | 85 | "\n\n" |
@@ -216,4 +222,4 @@ John BEPPU <beppu@lineo.com> | |||
216 | 222 | ||
217 | =cut | 223 | =cut |
218 | 224 | ||
219 | # $Id: autodocifier.pl,v 1.14 2001/03/06 19:25:25 beppu Exp $ | 225 | # $Id: autodocifier.pl,v 1.15 2001/03/15 18:14:25 andersen Exp $ |