diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-06 01:11:34 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-02-06 01:11:34 +0000 |
commit | abbfee036751682bbc1ebfb35d7dbbb3cb231b94 (patch) | |
tree | 0edcb2a1c3159a6fd589122d0e42666d5c5988a3 /docs | |
parent | db3f7a5aaf36c4cb2d5a26b4e4df88bf671178d7 (diff) | |
download | busybox-w32-abbfee036751682bbc1ebfb35d7dbbb3cb231b94.tar.gz busybox-w32-abbfee036751682bbc1ebfb35d7dbbb3cb231b94.tar.bz2 busybox-w32-abbfee036751682bbc1ebfb35d7dbbb3cb231b94.zip |
get rid of warnings with applets that have no usage and get rid of pointless --- separator between applets
git-svn-id: svn://busybox.net/trunk/busybox@13856 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/autodocifier.pl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index a122b0b06..95c9f410f 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -51,10 +51,14 @@ sub pod_for_usage { | |||
51 | 51 | ||
52 | # make options bold | 52 | # make options bold |
53 | my $trivial = $usage->{trivial}; | 53 | my $trivial = $usage->{trivial}; |
54 | $trivial =~ s/(?<!\w)(-\w+)/B<$1>/sxg; | 54 | if (!defined $usage->{trivial}) { |
55 | $trivial = ""; | ||
56 | } else { | ||
57 | $trivial =~ s/(?<!\w)(-\w+)/B<$1>/sxg; | ||
58 | } | ||
55 | my @f0 = | 59 | my @f0 = |
56 | map { $_ !~ /^\s/ && s/(?<!\w)(-\w+)/B<$1>/g; $_ } | 60 | map { $_ !~ /^\s/ && s/(?<!\w)(-\w+)/B<$1>/g; $_ } |
57 | split("\n", $usage->{full}); | 61 | split("\n", (defined $usage->{full} ? $usage->{full} : "")); |
58 | 62 | ||
59 | # add "\n" prior to certain lines to make indented | 63 | # add "\n" prior to certain lines to make indented |
60 | # lines look right | 64 | # lines look right |
@@ -89,7 +93,6 @@ sub pod_for_usage { | |||
89 | "$full\n\n" . | 93 | "$full\n\n" . |
90 | "$notes" . | 94 | "$notes" . |
91 | "$example" . | 95 | "$example" . |
92 | "-------------------------------". | ||
93 | "\n\n" | 96 | "\n\n" |
94 | ; | 97 | ; |
95 | } | 98 | } |