From 0d3a02eba76772e59c7832da6108776f576e9f1c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 15 Mar 2001 18:14:25 +0000 Subject: Update the documentation so examples are autoincluded in the output text. Fix up docs/busybox.pod with the latest autogenerated output. -Erik --- docs/autodocifier.pl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/autodocifier.pl') 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 { } 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 =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 $ -- cgit v1.2.3