get rid of warnings with applets that have no usage and get rid of pointless --- separator between applets
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -51,10 +51,14 @@ sub pod_for_usage { | |
| # make options bold | |
| my $trivial = $usage->{trivial}; | |
| - | $trivial =~ s/(?<!\w)(-\w+)/B<$1>/sxg; |
| + | if (!defined $usage->{trivial}) { |
| + | $trivial = ""; |
| + | } else { |
| + | $trivial =~ s/(?<!\w)(-\w+)/B<$1>/sxg; |
| + | } |
| my @f0 = | |
| map { $_ !~ /^\s/ && s/(?<!\w)(-\w+)/B<$1>/g; $_ } | |
| - | split("\n", $usage->{full}); |
| + | split("\n", (defined $usage->{full} ? $usage->{full} : "")); |
| # add "\n" prior to certain lines to make indented | |
| # lines look right | |
| @@ -89,7 +93,6 @@ sub pod_for_usage { | |
| "$full\n\n" . | |
| "$notes" . | |
| "$example" . | |
| - | "-------------------------------". |
| "\n\n" | |
| ; | |
| } | |