summaryrefslogtreecommitdiff
path: root/docs/autodocifier.pl
diff options
context:
space:
mode:
authorMike Frysinger2006-02-07 00:51:07 +0000
committerMike Frysinger2006-02-07 00:51:07 +0000
commit0380166916de8e54674c8ce7b60287b73107e6e6 (patch)
tree7640085b69fa81afaa42d1eaa80ee41d11cc03ed /docs/autodocifier.pl
parent4fcefb9e90fa5f230c8a728943ca2db2727fe673 (diff)
downloadbusybox-0380166916de8e54674c8ce7b60287b73107e6e6.zip
busybox-0380166916de8e54674c8ce7b60287b73107e6e6.tar.gz
space out supported applet names so the config list doesnt wrap on an 80col terminal
Diffstat (limited to 'docs/autodocifier.pl')
-rwxr-xr-xdocs/autodocifier.pl11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index 95c9f41..3a29512 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -155,14 +155,15 @@ foreach (@ARGV) {
my $generator = \&pod_for_usage;
my @names = sort keys %docs;
-print "\t[, [[, ";
+my $line = "\t[, [[, ";
for (my $i = 0; $i < $#names; $i++) {
- if (($i + 2) % 8 == 0) {
- print "\n\t";
+ if (length ($line.$names[$i]) >= 65) {
+ print "$line\n\t";
+ $line = "";
}
- print "$names[$i], ";
+ $line .= "$names[$i], ";
}
-print $names[-1];
+print $line . $names[-1];
print "\n\n=head1 COMMAND DESCRIPTIONS\n";
print "\n=over 4\n\n";