diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-02-05 22:10:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-02-05 22:10:40 +0000 |
commit | b0ed3d7cc08ed715ccea67c9d9061f4074e3b176 (patch) | |
tree | e06eb9da201ff8d01ec7dae07c23f567035e80f3 /docs | |
parent | bec26527a1849be6f81e9eaa56d0ff40a20338d6 (diff) | |
download | busybox-w32-b0ed3d7cc08ed715ccea67c9d9061f4074e3b176.tar.gz busybox-w32-b0ed3d7cc08ed715ccea67c9d9061f4074e3b176.tar.bz2 busybox-w32-b0ed3d7cc08ed715ccea67c9d9061f4074e3b176.zip |
Rob Sullivan writes: Here's a patch to autogenerate the list of applets in the Busybox documentation
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/autodocifier.pl | 16 | ||||
-rw-r--r-- | docs/busybox_header.pod | 28 |
2 files changed, 15 insertions, 29 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index eee67cf09..a122b0b06 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
@@ -150,7 +150,21 @@ foreach (@ARGV) { | |||
150 | # generate structured documentation | 150 | # generate structured documentation |
151 | 151 | ||
152 | my $generator = \&pod_for_usage; | 152 | my $generator = \&pod_for_usage; |
153 | foreach my $applet (sort keys %docs) { | 153 | |
154 | my @names = sort keys %docs; | ||
155 | print "\t[, [[, "; | ||
156 | for (my $i = 0; $i < $#names; $i++) { | ||
157 | if (($i + 2) % 8 == 0) { | ||
158 | print "\n\t"; | ||
159 | } | ||
160 | print "$names[$i], "; | ||
161 | } | ||
162 | print $names[-1]; | ||
163 | |||
164 | print "\n\n=head1 COMMAND DESCRIPTIONS\n"; | ||
165 | print "\n=over 4\n\n"; | ||
166 | |||
167 | foreach my $applet (@names) { | ||
154 | print $generator->($applet, $docs{$applet}); | 168 | print $generator->($applet, $docs{$applet}); |
155 | } | 169 | } |
156 | 170 | ||
diff --git a/docs/busybox_header.pod b/docs/busybox_header.pod index 7a5b0f716..ab1ebd501 100644 --- a/docs/busybox_header.pod +++ b/docs/busybox_header.pod | |||
@@ -80,31 +80,3 @@ been enabled, more detailed usage information will also be available. | |||
80 | 80 | ||
81 | Currently defined functions include: | 81 | Currently defined functions include: |
82 | 82 | ||
83 | addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2, | ||
84 | busybox, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, | ||
85 | cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, | ||
86 | devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap, | ||
87 | dumpleases, echo, egrep, env, expr, false, fbset, fdflush, fdformat, fdisk, | ||
88 | fgrep, find, fold, free, freeramdisk, fsck.minix, ftpget, ftpput, getopt, | ||
89 | getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, | ||
90 | httpd, hush, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod, | ||
91 | install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iptunnel, kill, | ||
92 | killall, klogd, lash, last, length, linuxrc, ln, loadfont, loadkmap, | ||
93 | logger, login, logname, logread, losetup, ls, lsmod, makedevs, md5sum, | ||
94 | mesg, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, modprobe, more, | ||
95 | mount, msh, mt, mv, nameif, nc, netstat, nslookup, od, openvt, passwd, | ||
96 | patch, pidof, ping, ping6, pipe_progress, pivot_root, poweroff, printf, ps, | ||
97 | pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod, | ||
98 | route, rpm, rpm2cpio, run-parts, rx, sed, seq, setkeycodes, sha1sum, sleep, | ||
99 | sort, start-stop-daemon, strings, stty, su, sulogin, swapoff, swapon, sync, | ||
100 | sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, | ||
101 | touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname, | ||
102 | uncompress, uniq, unix2dos, unzip, uptime, usleep, uudecode, uuencode, | ||
103 | vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, | ||
104 | yes, zcat | ||
105 | |||
106 | =head1 COMMAND DESCRIPTIONS | ||
107 | |||
108 | =over 4 | ||
109 | |||
110 | |||