Commit Graph

1708 Commits

Author SHA1 Message Date
John Beppu
d11578f916 - changed the way POD is generated such that the dashed
line appears at the bottom instead of the top.  The
  indentation semantics of POD make the first item in
  the (=over,=back) block look weird the other way.
- implemented a way to encode example usage into usage.h
  One would define a macro called "${applet}_example_usage"
  which would expand to the example text.
- The example usage is considered optional, but trivial and
  full usage are not.

  Here's an example using chown.

---- before

#define chown_trivial_usage \
	"[OPTION]...  OWNER[<.|:>[GROUP] FILE..."
#define chown_full_usage \
	"Change the owner and/or group of each FILE to OWNER and/or GROUP.\n" \
	"\nOptions:\n" \
	"\t-R\tChanges files and directories recursively."
#define chown_example_usage \
	"\t$ ls -l /tmp/foo\n" \
	"\t-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo\n" \
	"\t$ chown root /tmp/foo\n" \
	"\t$ ls -l /tmp/foo\n" \
	"\t-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo\n" \
	"\t$ chown root.root /tmp/foo\n" \
	"\tls -l /tmp/foo\n" \
	"\t-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo\n"

---- after

=item I<chown>

chown [OPTION]...  OWNER[<.|:>[GROUP] FILE...

Change the owner and/or group of each FILE to OWNER and/or GROUP.

Options:

	-R	Changes files and directories recursively.

Example:

	$ ls -l /tmp/foo
	-r--r--r--    1 andersen andersen        0 Apr 12 18:25 /tmp/foo
	$ chown root /tmp/foo
	$ ls -l /tmp/foo
	-r--r--r--    1 root     andersen        0 Apr 12 18:25 /tmp/foo
	$ chown root.root /tmp/foo
	ls -l /tmp/foo
	-r--r--r--    1 root     root            0 Apr 12 18:25 /tmp/foo


-------------------------------
2001-02-26 02:50:11 +00:00
Eric Andersen
2bf658d5cd This patch, from Quinn Jensen <jensenq@lineo.com>, adds MIPS support
to busybox insmod.  Thanks Quinn!!!
 -Erik
2001-02-24 20:01:53 +00:00
Eric Andersen
afeb96547f Make output match the real lsmod -- print (autoclean) type
stuff first not last.
 -Erik
2001-02-24 19:51:54 +00:00
Eric Andersen
d160a27ec1 Stub out the syscall, not the whole application. The stubbed
out syscall sets errno properly and whines about missing kernel
support.
 -Erik
2001-02-24 19:17:07 +00:00
Eric Andersen
dc12190ba2 The usage message for syslogd had stuff longer then 80 chars and wrapped. 2001-02-24 18:52:36 +00:00
John Beppu
37977622c4 ... 2001-02-24 14:44:25 +00:00
John Beppu
7d597c4833 refinement 2001-02-24 14:37:48 +00:00
John Beppu
dbfff6cbde formatting ... 2001-02-23 17:55:03 +00:00
John Beppu
e6967b20cb Added some documentation and made --sgml use sgml_from_usage().
pod_from_usage() is the default generator.
2001-02-23 17:51:08 +00:00
Eric Andersen
3757f98d86 Another usage cleanup from kent robotti 2001-02-23 17:47:51 +00:00
John Beppu
8373e70c55 During POD generation, it inserts a blank line before lines
that were intended to be indented.
2001-02-23 17:41:41 +00:00
Eric Andersen
7a9cc2dcdd More cleanups 2001-02-23 16:58:44 +00:00
John Beppu
15f9b92127 forgot to remove some debugging noise 2001-02-23 16:16:08 +00:00
John Beppu
df1e9daf30 This one should be able to deal with the USAGE macros a little
more robustly.  I also blow away any USAGE_NOT_\w+ macros.
2001-02-23 16:15:34 +00:00
Eric Andersen
ed0d958c3e Make HUMAN_READABLE be single argument like the others. 2001-02-23 13:23:03 +00:00
John Beppu
2498b155fd forgot a comma. 2001-02-23 13:04:39 +00:00
Eric Andersen
a0cfe94c4e More usage cleanups from kent robotti. I know some of these were
applied previously but apparently lost with some of the latest changes.
2001-02-23 10:07:09 +00:00
Eric Andersen
b83ffafc15 Fix up a stupid mistake caught by David Whedon <dwhedon@gordian.com> 2001-02-23 06:36:53 +00:00
David Kimdon
56082dc2ae space after \ make preprocessor sad 2001-02-23 06:03:22 +00:00
David Kimdon
68c1d8400c utility.c must include stdarg.h 2001-02-23 03:55:24 +00:00
John Beppu
b249fbb1dc I can't leave it alone. 2001-02-23 03:12:45 +00:00
John Beppu
8c16bc5012 minor cleanup... all that's left to do is
* make headers and footers for both the POD and SGML content
* make an SGML generator
* finish the command-line handling

Also, some of the documentation in usage.h will have to
be adjusted.  expr needs some lines to be indented, and
ls has a stray comma.  I may have missed some things...
but it looks OK for the most part.
2001-02-23 02:54:31 +00:00
John Beppu
4a25d8c9c3 This is the remixed autodocufier.pl. 2001-02-23 02:33:28 +00:00
Eric Andersen
0ed9923887 Stub out pivot_root so it won't fail to compile.
-Erik
2001-02-23 02:31:03 +00:00
Eric Andersen
3574b70efc Somewhere along the line, MAKE_LINKS got broken, thereby breaking
'make install'.  Fix that.
2001-02-23 02:16:29 +00:00
Eric Andersen
8079b155c2 Argh. I should know to compile first. 2001-02-23 02:04:33 +00:00
Eric Andersen
bbc8e4789f Only default to BB_FEATURE_NEW_MODULE_INTERFACE when
BB_FEATURE_OLD_MODULE_INTERFACE is not defined.
 -Erik
2001-02-23 02:00:35 +00:00
Eric Andersen
2f3105725f Make utility.c only define query_module when BB_FEATURE_NEW_MODULE_INTERFACE
is enabled.
 -Erik
2001-02-23 01:58:18 +00:00
Eric Andersen
5723934f7c Yet another fix. I think I got it this time.
-Erik
2001-02-23 01:39:26 +00:00
Eric Andersen
41492d6c23 I should be more careful... 2001-02-23 00:05:56 +00:00
Eric Andersen
c163e5107f Turn off the printf attribute for the ?error_msg* functions, since it
is ok to pass them a NULL, unlike printf.  This silences a pointless
warning message.
 -Erik
2001-02-22 23:38:48 +00:00
Eric Andersen
544891dd26 Add in kent robotti's updated dos2unix.c 2001-02-22 23:37:30 +00:00
Eric Andersen
adea7a6101 Fix up Makefile -- uClibc nfs works these days 2001-02-22 23:36:30 +00:00
Eric Andersen
4b2e69a1cf Commit a few updates to the usage messages. 2001-02-22 23:32:59 +00:00
Eric Andersen
e13bc0bc68 First pass at making up an automagical usage message extractor, which
will be used (when it works) to autogenerate documentation.  Based on
code written by Mark Whitley.
2001-02-22 22:47:06 +00:00
Eric Andersen
ffc40bf3de Account for remainder, and reset page_height for each and every page. 2001-02-22 21:49:32 +00:00
Eric Andersen
b2007bffc5 Make busybox and busybox-static conflict/replace each other 2001-02-22 05:21:35 +00:00
Eric Andersen
5d9cad0253 Fix malformed build-depends. Update list of bugs to close
-Erik
2001-02-22 05:08:16 +00:00
Eric Andersen
7aa1f5c42a Make md5sum not display filename when reading stdin
-Erik
2001-02-22 04:59:16 +00:00
Eric Andersen
dbcd8ce464 Make init compile when DEBUG_INIT is enabled
-Erik
2001-02-22 04:55:33 +00:00
Eric Andersen
7e9276b50a Another update to the way usage messages are done by Evin Robertson
<nitfol@my-deja.com>, which makes things just a little bit smaller, but makes
usage.h more readable/maintainable IMHO.
 -Erik
2001-02-22 01:15:47 +00:00
Eric Andersen
8fc300976f Revert my change to do extra termType checking. That is done elsewhere.
Silly me.
 -Erik
2001-02-22 00:50:20 +00:00
Eric Andersen
be30a6b8b0 Adjust the terminal height for any overlap, so that no lines
get lost off the top
 -Erik
2001-02-22 00:22:46 +00:00
Eric Andersen
54006bce25 Oops! I left in my debug noise. 2001-02-21 00:27:22 +00:00
Eric Andersen
7c3e7ac940 df was totally broken. So I fixed it.
-Erik
2001-02-21 00:24:51 +00:00
Mark Whitley
8d7bdc9deb Small patch from Kent Robotti to show megabytes in human-readable output. 2001-02-20 21:57:55 +00:00
Eric Andersen
9e37007edb Minor cleanup. 2001-02-20 21:52:49 +00:00
Eric Andersen
90fe7fea10 Apply a patch from Magnus Damm <damm@opensource.se> to support
powerpc with busybox insmod
 -Erik
2001-02-20 20:47:08 +00:00
Eric Andersen
477aedd77f Commit a patch from Erik Gustavsson <cyrano@algonet.se>, to allow
environment variables set from the kernel command line to be inherited
bu application programs.  Slightly changed to special case handling of
TERM, so that it has sane defaults when on a serial console.
 -Erik
2001-02-20 18:01:50 +00:00
Eric Andersen
5165fbed63 Oops. Since dirent.h depends on BB_FEATURE_SH_TAB_COMPLETION, put it
after busybox.h is included.
2001-02-20 06:42:29 +00:00