- 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
my $example = (defined $usage->{example})
? $usage->{example}
: "";
$example =
?
"Example:\n\n" .
join ("\n",
map { " $_" }
split("\n", $example)) . "\n\n";
map { "\t$_" }
split("\n", $usage->{example})) . "\n\n"
: "";
return
"=item I<$name>".
@ -227,4 +226,4 @@ John BEPPU <beppu@lineo.com>
=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,
uuencode, watchdog, wc, wget, which, whoami, xargs, yes, zcat, [
-------------------------------
=over 4
=item I<ar>
ar -[ovR]{ptx} archive filenames
@ -139,7 +136,6 @@ $ chgrp root /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 andersen root 0 Apr 12 18:25 /tmp/foo
-------------------------------
=item I<chmod>
@ -164,7 +160,6 @@ $ chmod 444 /tmp/foo
$ ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
=item I<chown>
@ -188,7 +183,6 @@ $ chown root.root /tmp/foo
ls -l /tmp/foo
-r--r--r-- 1 root root 0 Apr 12 18:25 /tmp/foo
-------------------------------
=item I<chroot>
@ -206,7 +200,6 @@ $ chroot /mnt
$ ls -l /bin/ls
-rwxr-xr-x 1 root root 40816 Feb 5 07:45 /bin/ls*
-------------------------------
=item I<chvt>
@ -269,7 +262,6 @@ Hello
$ echo Hello world | cut -f 2 -d ' '
world
-------------------------------
=item I<date>
@ -290,7 +282,6 @@ Example:
$ date
Wed Apr 12 18:52:41 MDT 2000
-------------------------------
=item I<dc>
@ -314,7 +305,6 @@ $ dc 0 1 or
$ echo 72 9 div 8 mul | dc
64
-------------------------------
=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 out
-------------------------------
=item I<deallocvt>
@ -375,7 +364,6 @@ $ df /dev/sda3
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 8690864 8553540 137324 98% /
-------------------------------
=item I<dirname>
@ -391,7 +379,6 @@ $ dirname /tmp/foo
$ dirname /tmp/foo/
/tmp
-------------------------------
=item I<dmesg>
@ -452,7 +439,6 @@ Example:
$ dpkg-deb -X ./busybox_0.48-1_i386.deb /tmp
-------------------------------
=item I<du>
@ -484,7 +470,6 @@ $ du
104 ./docs
2417 .
-------------------------------
=item I<dumpkmap>
@ -497,7 +482,6 @@ Example:
$ dumpkmap > keymap
-------------------------------
=item I<dutmp>
@ -518,7 +502,6 @@ $ dutmp /var/run/utmp
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
-------------------------------
=item I<echo>
@ -550,15 +533,6 @@ Erik
is
cool
-------------------------------
=item I<egrep>
egrep
-------------------------------
=item I<expr>
@ -613,7 +587,6 @@ $ false
$ echo $?
1
-------------------------------
=item I<fbset>
@ -632,7 +605,6 @@ mode 1024x768-76
rgba 5/11,6/5,5/0,0/0
endmode
-------------------------------
=item I<fdflush>
@ -665,7 +637,6 @@ Example:
$ find / -name /etc/passwd
/etc/passwd
-------------------------------
=item I<free>
@ -695,7 +666,6 @@ Example:
$ freeramdisk /dev/ram2
-------------------------------
=item I<fsck_minix>
@ -753,7 +723,6 @@ while true ; do
esac
done
-------------------------------
=item I<grep>
@ -779,7 +748,6 @@ root:x:0:0:root:/root:/bin/bash
$ grep ^[rR]oo. /etc/passwd
root:x:0:0:root:/root:/bin/bash
-------------------------------
=item I<gunzip>
@ -801,7 +769,6 @@ $ gunzip /tmp/BusyBox-0.43.tar.gz
$ ls -la /tmp/BusyBox*
-rw-rw-r-- 1 andersen andersen 1761280 Apr 14 17:47 /tmp/BusyBox-0.43.tar
-------------------------------
=item I<gzip>
@ -824,7 +791,6 @@ $ gzip /tmp/BusyBox-0.43.tar
$ ls -la /tmp/BusyBox*
-rw-rw-r-- 1 andersen andersen 554058 Apr 14 17:49 /tmp/BusyBox-0.43.tar.gz
-------------------------------
=item I<halt>
@ -853,7 +819,6 @@ $ head -n 2 /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
-------------------------------
=item I<hostid>
@ -883,7 +848,6 @@ Example:
$ hostname
slag
-------------------------------
=item I<id>
@ -904,7 +868,6 @@ Example:
$ id
uid=1000(andersen) gid=1000(andersen)
-------------------------------
=item I<ifconfig>
@ -1065,7 +1028,6 @@ $ ps | grep apache
267 www-data www-data S [apache]
$ kill 252
-------------------------------
=item I<killall>
@ -1107,7 +1069,6 @@ Example:
$ length Hello
5
-------------------------------
=item I<ln>
@ -1321,7 +1282,6 @@ $ md5sum -c -
busybox: OK
^D
-------------------------------
=item I<mkdir>
@ -1634,7 +1594,6 @@ $ ps
745 root root S [getty]
2990 andersen andersen R ps
-------------------------------
=item I<pwd>
@ -1648,7 +1607,6 @@ Example:
$ pwd
/root
-------------------------------
=item I<rdate>
@ -1715,7 +1673,6 @@ Example:
$ rm -rf /tmp/foo
-------------------------------
=item I<rmdir>
@ -1744,7 +1701,6 @@ Example:
$ rmmod tulip
-------------------------------
=item I<route>
@ -1783,7 +1739,6 @@ Example:
$ echo foo | sed -e 's/f[a-zA-Z]o/bar/g'
bar
-------------------------------
=item I<setkeycodes>
@ -1800,7 +1755,6 @@ Example:
$ setkeycodes e030 127
-------------------------------
=item I<sh>
@ -1832,7 +1786,6 @@ Example:
$ sleep 2
[2 second delay results]
-------------------------------
=item I<sort>
@ -1856,7 +1809,6 @@ d
e
f
-------------------------------
=item I<stty>
@ -1927,7 +1879,6 @@ Example:
$ syslogd -R masterlog:514
$ syslogd -R 192.168.1.1:601
-------------------------------
=item I<tail>
@ -1947,7 +1898,7 @@ Options:
-s SEC wait SEC seconds between reads with -f
-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
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
nameserver 10.0.0.1
-------------------------------
=item I<tar>
@ -1987,7 +1937,6 @@ Example:
$ zcat /tmp/tarball.tar.gz | tar -xf -
$ tar -cf /tmp/tarball.tar /usr/local
-------------------------------
=item I<tee>
@ -2006,7 +1955,6 @@ $ echo Hello | tee /tmp/foo
$ cat /tmp/foo
Hello
-------------------------------
=item I<telnet>
@ -2041,7 +1989,6 @@ $ [ -d /junk ]
$ echo $?
1
-------------------------------
=item I<tftp>
@ -2113,7 +2060,6 @@ $ true
$ echo $?
0
-------------------------------
=item I<tty>
@ -2131,7 +2077,6 @@ Example:
$ tty
/dev/tty2
-------------------------------
=item I<umount>
@ -2152,7 +2097,6 @@ Example:
$ umount /dev/hdc1
-------------------------------
=item I<uname>
@ -2203,7 +2147,6 @@ a
b
c
-------------------------------
=item I<unix2dos>
@ -2253,7 +2196,6 @@ Example:
$ usleep 1000000
[pauses for 1 second]
-------------------------------
=item I<uudecode>
@ -2285,11 +2227,10 @@ Example:
$ uuencode busybox busybox
begin 755 busybox
M?T5,1@$!`0````````````(``P`!````L+@$.....
<encoded file snipped>
$ uudecode busybox busybox > busybox.uu
$
-------------------------------
=item I<watchdog>
@ -2346,7 +2287,6 @@ Example:
$ which login
/bin/login
-------------------------------
=item I<whoami>
@ -2375,7 +2315,7 @@ $ find . -name '*.c' -print | xargs rm
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
# $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 $