svn commit: trunk/busybox/docs
vapier at busybox.net
vapier at busybox.net
Mon Feb 6 01:11:36 UTC 2006
Author: vapier
Date: 2006-02-05 17:11:34 -0800 (Sun, 05 Feb 2006)
New Revision: 13856
Log:
get rid of warnings with applets that have no usage and get rid of pointless --- separator between applets
Modified:
trunk/busybox/docs/autodocifier.pl
Changeset:
Modified: trunk/busybox/docs/autodocifier.pl
===================================================================
--- trunk/busybox/docs/autodocifier.pl 2006-02-05 22:15:39 UTC (rev 13855)
+++ trunk/busybox/docs/autodocifier.pl 2006-02-06 01:11:34 UTC (rev 13856)
@@ -51,10 +51,14 @@
# 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 @@
"$full\n\n" .
"$notes" .
"$example" .
- "-------------------------------".
"\n\n"
;
}
More information about the busybox-cvs
mailing list