diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2006-02-06 01:11:34 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-06 01:11:34 +0000 |
| commit | ba9c4d1f892d102f0384a52a0be370dd184ea1c2 (patch) | |
| tree | 0edcb2a1c3159a6fd589122d0e42666d5c5988a3 /docs | |
| parent | f37529d6b692797a136b59c2014ab87fef63ced8 (diff) | |
| download | busybox-w32-ba9c4d1f892d102f0384a52a0be370dd184ea1c2.tar.gz busybox-w32-ba9c4d1f892d102f0384a52a0be370dd184ea1c2.tar.bz2 busybox-w32-ba9c4d1f892d102f0384a52a0be370dd184ea1c2.zip | |
get rid of warnings with applets that have no usage and get rid of pointless --- separator between applets
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 | } |
