Rob Sullivan writes: Here's a patch to autogenerate the list of applets in the Busybox documentation
This commit is contained in:
parent
bec26527a1
commit
b0ed3d7cc0
@ -150,7 +150,21 @@ foreach (@ARGV) {
|
|||||||
# generate structured documentation
|
# generate structured documentation
|
||||||
|
|
||||||
my $generator = \&pod_for_usage;
|
my $generator = \&pod_for_usage;
|
||||||
foreach my $applet (sort keys %docs) {
|
|
||||||
|
my @names = sort keys %docs;
|
||||||
|
print "\t[, [[, ";
|
||||||
|
for (my $i = 0; $i < $#names; $i++) {
|
||||||
|
if (($i + 2) % 8 == 0) {
|
||||||
|
print "\n\t";
|
||||||
|
}
|
||||||
|
print "$names[$i], ";
|
||||||
|
}
|
||||||
|
print $names[-1];
|
||||||
|
|
||||||
|
print "\n\n=head1 COMMAND DESCRIPTIONS\n";
|
||||||
|
print "\n=over 4\n\n";
|
||||||
|
|
||||||
|
foreach my $applet (@names) {
|
||||||
print $generator->($applet, $docs{$applet});
|
print $generator->($applet, $docs{$applet});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,31 +80,3 @@ been enabled, more detailed usage information will also be available.
|
|||||||
|
|
||||||
Currently defined functions include:
|
Currently defined functions include:
|
||||||
|
|
||||||
addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2,
|
|
||||||
busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp,
|
|
||||||
cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser,
|
|
||||||
devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap,
|
|
||||||
dumpleases, echo, egrep, env, expr, false, fbset, fdflush, fdformat, fdisk,
|
|
||||||
fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt,
|
|
||||||
getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname,
|
|
||||||
httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod,
|
|
||||||
install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill,
|
|
||||||
killall, klogd, lash, last, length, linuxrc, ln, loadfont, loadkmap,
|
|
||||||
logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum,
|
|
||||||
mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more,
|
|
||||||
mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd,
|
|
||||||
patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printf, ps,
|
|
||||||
pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod,
|
|
||||||
route, rpm, rpm2cpio, run-parts, rx, sed, seq, setkeycodes, sha1sum, sleep,
|
|
||||||
sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon, sync,
|
|
||||||
sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top,
|
|
||||||
touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname,
|
|
||||||
uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode,
|
|
||||||
vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs,
|
|
||||||
yes, zcat
|
|
||||||
|
|
||||||
=head1 COMMAND DESCRIPTIONS
|
|
||||||
|
|
||||||
=over 4
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user