- generated middle section of busybox.pod w/ autodocifier.pl

- updated autodocifier.pl to use tab to indent example section
This commit is contained in:
John Beppu 2001-03-15 21:08:01 +00:00
parent a4edd0e946
commit e708cb5f9a
2 changed files with 357 additions and 418 deletions

View File

@ -69,13 +69,12 @@ sub pod_for_usage {
# prepare example if one exists # prepare example if one exists
my $example = (defined $usage->{example}) my $example = (defined $usage->{example})
? $usage->{example} ?
: "";
$example =
"Example:\n\n" . "Example:\n\n" .
join ("\n", join ("\n",
map { " $_" } map { "\t$_" }
split("\n", $example)) . "\n\n"; split("\n", $usage->{example})) . "\n\n"
: "";
return return
"=item I<$name>". "=item I<$name>".
@ -227,4 +226,4 @@ John BEPPU <beppu@lineo.com>
=cut =cut
# $Id: autodocifier.pl,v 1.16 2001/03/15 20:49:25 beppu Exp $ # $Id: autodocifier.pl,v 1.17 2001/03/15 21:08:01 beppu Exp $

View File

@ -68,11 +68,8 @@ swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, test, tftp, touch, tr,
true, tty, umount, uname, uniq, unix2dos, update, uptime, usleep, uudecode, true, tty, umount, uname, uniq, unix2dos, update, uptime, usleep, uudecode,
uuencode, watchdog, wc, wget, which, whoami, xargs, yes, zcat, [ uuencode, watchdog, wc, wget, which, whoami, xargs, yes, zcat, [
-------------------------------
=over 4 =over 4
=item I<ar> =item I<ar>
ar -[ovR]{ptx} archive filenames ar -[ovR]{ptx} archive filenames
@ -139,7 +136,6 @@ $ chgrp root /tmp/foo
$ ls -l /tmp/foo $ ls -l /tmp/foo
-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo -r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
------------------------------- -------------------------------
=item I<chmod> =item I<chmod>
@ -164,7 +160,6 @@ $ chmod 444 /tmp/foo
$ ls -l /tmp/foo $ ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
------------------------------- -------------------------------
=item I<chown> =item I<chown>
@ -188,7 +183,6 @@ $ chown root.root /tmp/foo
ls -l /tmp/foo ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo -r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
------------------------------- -------------------------------
=item I<chroot> =item I<chroot>
@ -206,7 +200,6 @@ $ chroot /mnt
$ ls -l /bin/ls $ ls -l /bin/ls
-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls* -rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
------------------------------- -------------------------------
=item I<chvt> =item I<chvt>
@ -269,7 +262,6 @@ Hello
$ echo Hello world | cut -f 2 -d ' ' $ echo Hello world | cut -f 2 -d ' '
world world
------------------------------- -------------------------------
=item I<date> =item I<date>
@ -290,7 +282,6 @@ Example:
$ date $ date
Wed Apr 12 18:52:41 MDT 2000 Wed Apr 12 18:52:41 MDT 2000
------------------------------- -------------------------------
=item I<dc> =item I<dc>
@ -314,7 +305,6 @@ $ dc 0 1 or
$ echo 72 9 div 8 mul | dc $ echo 72 9 div 8 mul | dc
64 64
------------------------------- -------------------------------
=item I<dd> =item I<dd>
@ -342,7 +332,6 @@ $ dd if=/dev/zero of=/dev/ram1 bs=1M count=4
4+0 records in 4+0 records in
4+0 records out 4+0 records out
------------------------------- -------------------------------
=item I<deallocvt> =item I<deallocvt>
@ -375,7 +364,6 @@ $ df /dev/sda3
Filesystem 1k-blocks Used Available Use% Mounted on Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 8690864 8553540 137324 98% / /dev/sda3 8690864 8553540 137324 98% /
------------------------------- -------------------------------
=item I<dirname> =item I<dirname>
@ -391,7 +379,6 @@ $ dirname /tmp/foo
$ dirname /tmp/foo/ $ dirname /tmp/foo/
/tmp /tmp
------------------------------- -------------------------------
=item I<dmesg> =item I<dmesg>
@ -452,7 +439,6 @@ Example:
$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp $ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp
------------------------------- -------------------------------
=item I<du> =item I<du>
@ -484,7 +470,6 @@ $ du
104 ./docs 104 ./docs
2417 . 2417 .
------------------------------- -------------------------------
=item I<dumpkmap> =item I<dumpkmap>
@ -497,7 +482,6 @@ Example:
$ dumpkmap > keymap $ dumpkmap > keymap
------------------------------- -------------------------------
=item I<dutmp> =item I<dutmp>
@ -518,7 +502,6 @@ $ dutmp /var/run/utmp
6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0 6|246|tty2|2|LOGIN||0|0|0|955637630|999498|0
7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0 7|336|pts/0|vt00andersen|andersen|:0.0|0|0|0|955637763|0|0
------------------------------- -------------------------------
=item I<echo> =item I<echo>
@ -550,15 +533,6 @@ Erik
is is
cool cool
-------------------------------
=item I<egrep>
egrep
------------------------------- -------------------------------
=item I<expr> =item I<expr>
@ -613,7 +587,6 @@ $ false
$ echo $? $ echo $?
1 1
------------------------------- -------------------------------
=item I<fbset> =item I<fbset>
@ -632,7 +605,6 @@ mode 1024x768-76
rgba 5/11,6/5,5/0,0/0 rgba 5/11,6/5,5/0,0/0
endmode endmode
------------------------------- -------------------------------
=item I<fdflush> =item I<fdflush>
@ -665,7 +637,6 @@ Example:
$ find / -name /etc/passwd $ find / -name /etc/passwd
/etc/passwd /etc/passwd
------------------------------- -------------------------------
=item I<free> =item I<free>
@ -695,7 +666,6 @@ Example:
$ freeramdisk /dev/ram2 $ freeramdisk /dev/ram2
------------------------------- -------------------------------
=item I<fsck_minix> =item I<fsck_minix>
@ -753,7 +723,6 @@ while true ; do
esac esac
done done
------------------------------- -------------------------------
=item I<grep> =item I<grep>
@ -779,7 +748,6 @@ root:x:0:0:root:/root:/bin/bash
$ grep ^[rR]oo. /etc/passwd $ grep ^[rR]oo. /etc/passwd
root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
------------------------------- -------------------------------
=item I<gunzip> =item I<gunzip>
@ -801,7 +769,6 @@ $ gunzip /tmp/BusyBox-0.43.tar.gz
$ ls -la /tmp/BusyBox* $ ls -la /tmp/BusyBox*
-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar -rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
------------------------------- -------------------------------
=item I<gzip> =item I<gzip>
@ -824,7 +791,6 @@ $ gzip /tmp/BusyBox-0.43.tar
$ ls -la /tmp/BusyBox* $ ls -la /tmp/BusyBox*
-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz -rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz
------------------------------- -------------------------------
=item I<halt> =item I<halt>
@ -853,7 +819,6 @@ $ head -n 2 /etc/passwd
root:x:0:0:root:/root:/bin/bash root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh daemon:x:1:1:daemon:/usr/sbin:/bin/sh
------------------------------- -------------------------------
=item I<hostid> =item I<hostid>
@ -883,7 +848,6 @@ Example:
$ hostname $ hostname
slag slag
------------------------------- -------------------------------
=item I<id> =item I<id>
@ -904,7 +868,6 @@ Example:
$ id $ id
uid=1000(andersen) gid=1000(andersen) uid=1000(andersen) gid=1000(andersen)
------------------------------- -------------------------------
=item I<ifconfig> =item I<ifconfig>
@ -1065,7 +1028,6 @@ $ ps | grep apache
267 www-data www-data S [apache] 267 www-data www-data S [apache]
$ kill 252 $ kill 252
------------------------------- -------------------------------
=item I<killall> =item I<killall>
@ -1107,7 +1069,6 @@ Example:
$ length Hello $ length Hello
5 5
------------------------------- -------------------------------
=item I<ln> =item I<ln>
@ -1321,7 +1282,6 @@ $ md5sum -c -
busybox: OK busybox: OK
^D ^D
------------------------------- -------------------------------
=item I<mkdir> =item I<mkdir>
@ -1634,7 +1594,6 @@ $ ps
745 root root S [getty] 745 root root S [getty]
2990 andersen andersen R ps 2990 andersen andersen R ps
------------------------------- -------------------------------
=item I<pwd> =item I<pwd>
@ -1648,7 +1607,6 @@ Example:
$ pwd $ pwd
/root /root
------------------------------- -------------------------------
=item I<rdate> =item I<rdate>
@ -1715,7 +1673,6 @@ Example:
$ rm -rf /tmp/foo $ rm -rf /tmp/foo
------------------------------- -------------------------------
=item I<rmdir> =item I<rmdir>
@ -1744,7 +1701,6 @@ Example:
$ rmmod tulip $ rmmod tulip
------------------------------- -------------------------------
=item I<route> =item I<route>
@ -1783,7 +1739,6 @@ Example:
$ echo foo | sed -e 's/f[a-zA-Z]o/bar/g' $ echo foo | sed -e 's/f[a-zA-Z]o/bar/g'
bar bar
------------------------------- -------------------------------
=item I<setkeycodes> =item I<setkeycodes>
@ -1800,7 +1755,6 @@ Example:
$ setkeycodes e030 127 $ setkeycodes e030 127
------------------------------- -------------------------------
=item I<sh> =item I<sh>
@ -1832,7 +1786,6 @@ Example:
$ sleep 2 $ sleep 2
[2 second delay results] [2 second delay results]
------------------------------- -------------------------------
=item I<sort> =item I<sort>
@ -1856,7 +1809,6 @@ d
e e
f f
------------------------------- -------------------------------
=item I<stty> =item I<stty>
@ -1927,7 +1879,6 @@ Example:
$ syslogd -R masterlog:514 $ syslogd -R masterlog:514
$ syslogd -R 192.168.1.1:601 $ syslogd -R 192.168.1.1:601
------------------------------- -------------------------------
=item I<tail> =item I<tail>
@ -1947,7 +1898,7 @@ Options:
-s SEC wait SEC seconds between reads with -f -s SEC wait SEC seconds between reads with -f
-v always output headers giving file names -v always output headers giving file names
If the first character of N (bytes or lines) is a `+', output begins with If the first character of N (bytes or lines) is a '+', output begins with
the Nth item from the start of each file, otherwise, print the last N items the Nth item from the start of each file, otherwise, print the last N items
in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2). in the file. N bytes may be suffixed by k (x1024), b (x512), or m (1024^2).
@ -1956,7 +1907,6 @@ Example:
$ tail -n 1 /etc/resolv.conf $ tail -n 1 /etc/resolv.conf
nameserver 10.0.0.1 nameserver 10.0.0.1
------------------------------- -------------------------------
=item I<tar> =item I<tar>
@ -1987,7 +1937,6 @@ Example:
$ zcat /tmp/tarball.tar.gz | tar -xf - $ zcat /tmp/tarball.tar.gz | tar -xf -
$ tar -cf /tmp/tarball.tar /usr/local $ tar -cf /tmp/tarball.tar /usr/local
------------------------------- -------------------------------
=item I<tee> =item I<tee>
@ -2006,7 +1955,6 @@ $ echo Hello | tee /tmp/foo
$ cat /tmp/foo $ cat /tmp/foo
Hello Hello
------------------------------- -------------------------------
=item I<telnet> =item I<telnet>
@ -2041,7 +1989,6 @@ $ [ -d /junk ]
$ echo $? $ echo $?
1 1
------------------------------- -------------------------------
=item I<tftp> =item I<tftp>
@ -2113,7 +2060,6 @@ $ true
$ echo $? $ echo $?
0 0
------------------------------- -------------------------------
=item I<tty> =item I<tty>
@ -2131,7 +2077,6 @@ Example:
$ tty $ tty
/dev/tty2 /dev/tty2
------------------------------- -------------------------------
=item I<umount> =item I<umount>
@ -2152,7 +2097,6 @@ Example:
$ umount /dev/hdc1 $ umount /dev/hdc1
------------------------------- -------------------------------
=item I<uname> =item I<uname>
@ -2203,7 +2147,6 @@ a
b b
c c
------------------------------- -------------------------------
=item I<unix2dos> =item I<unix2dos>
@ -2253,7 +2196,6 @@ Example:
$ usleep 1000000 $ usleep 1000000
[pauses for 1 second] [pauses for 1 second]
------------------------------- -------------------------------
=item I<uudecode> =item I<uudecode>
@ -2285,11 +2227,10 @@ Example:
$ uuencode busybox busybox $ uuencode busybox busybox
begin 755 busybox begin 755 busybox
M?T5,1@$!`0````````````(``P`!````L+@$..... <encoded file snipped>
$ uudecode busybox busybox > busybox.uu $ uudecode busybox busybox > busybox.uu
$ $
------------------------------- -------------------------------
=item I<watchdog> =item I<watchdog>
@ -2346,7 +2287,6 @@ Example:
$ which login $ which login
/bin/login /bin/login
------------------------------- -------------------------------
=item I<whoami> =item I<whoami>
@ -2375,7 +2315,7 @@ $ find . -name '*.c' -print | xargs rm
yes [OPTION]... [STRING]... yes [OPTION]... [STRING]...
Repeatedly outputs a line with all specified STRING(s), or `y'. Repeatedly outputs a line with all specified STRING(s), or 'y'.
------------------------------- -------------------------------
@ -2535,4 +2475,4 @@ Enrique Zanardi <ezanardi@ull.es>
=cut =cut
# $Id: busybox.pod,v 1.90 2001/03/15 18:14:25 andersen Exp $ # $Id: busybox.pod,v 1.91 2001/03/15 21:08:01 beppu Exp $