diff options
| author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-05 19:35:17 +0000 |
|---|---|---|
| committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-05 19:35:17 +0000 |
| commit | b7cbb8395202f74bd817e612d55dec916b617dfd (patch) | |
| tree | 0cdb22478eb7cb306e19a0835e1b69ea648c2d04 /docs | |
| parent | 67ae2ce69d77b0001cf299dce0474d56587f496e (diff) | |
| download | busybox-w32-b7cbb8395202f74bd817e612d55dec916b617dfd.tar.gz busybox-w32-b7cbb8395202f74bd817e612d55dec916b617dfd.tar.bz2 busybox-w32-b7cbb8395202f74bd817e612d55dec916b617dfd.zip | |
- documentation updates and a minor tweak to POD generation
git-svn-id: svn://busybox.net/trunk/busybox@2258 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
| -rwxr-xr-x | docs/autodocifier.pl | 61 |
1 files changed, 55 insertions, 6 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl index 567b10310..c119215d4 100755 --- a/docs/autodocifier.pl +++ b/docs/autodocifier.pl | |||
| @@ -77,7 +77,7 @@ sub pod_for_usage { | |||
| 77 | : ""; | 77 | : ""; |
| 78 | 78 | ||
| 79 | return | 79 | return |
| 80 | "=item I<$name>". | 80 | "=item B<$name>". |
| 81 | "\n\n" . | 81 | "\n\n" . |
| 82 | "$name $trivial". | 82 | "$name $trivial". |
| 83 | "\n\n" . | 83 | "\n\n" . |
| @@ -192,24 +192,73 @@ This script was based on a script by Erik Andersen (andersen@lineo.com). | |||
| 192 | 192 | ||
| 193 | =over 4 | 193 | =over 4 |
| 194 | 194 | ||
| 195 | =item --help | 195 | =item B<--help> |
| 196 | 196 | ||
| 197 | This displays the help message. | 197 | This displays the help message. |
| 198 | 198 | ||
| 199 | =item --pod | 199 | =item B<--pod> |
| 200 | 200 | ||
| 201 | Generate POD (this is the default) | 201 | Generate POD (this is the default) |
| 202 | 202 | ||
| 203 | =item --sgml | 203 | =item B<--sgml> |
| 204 | 204 | ||
| 205 | Generate SGML | 205 | Generate SGML |
| 206 | 206 | ||
| 207 | =item --verbose | 207 | =item B<--verbose> |
| 208 | 208 | ||
| 209 | Be verbose (not implemented) | 209 | Be verbose (not implemented) |
| 210 | 210 | ||
| 211 | =back | 211 | =back |
| 212 | 212 | ||
| 213 | =head1 FORMAT | ||
| 214 | |||
| 215 | The following is an example of some data this script might parse. | ||
| 216 | |||
| 217 | #define length_trivial_usage \ | ||
| 218 | "STRING" | ||
| 219 | #define length_full_usage \ | ||
| 220 | "Prints out the length of the specified STRING." | ||
| 221 | #define length_example_usage \ | ||
| 222 | "$ length "Hello"\n" \ | ||
| 223 | "5\n" | ||
| 224 | |||
| 225 | Each entry is a cpp macro that defines a string. The macros are | ||
| 226 | named systematically in the form: | ||
| 227 | |||
| 228 | $name_$type_usage | ||
| 229 | |||
| 230 | $name is the name of the applet. $type can be "trivial", "full", "notes", | ||
| 231 | or "example". Every documentation macro must end with "_usage". | ||
| 232 | |||
| 233 | The definition of the types is as follows: | ||
| 234 | |||
| 235 | =over 4 | ||
| 236 | |||
| 237 | =item B<trivial> | ||
| 238 | |||
| 239 | This should be a brief, one-line description of parameters that | ||
| 240 | the command expects. This will be displayed when B<-h> is issued to | ||
| 241 | a command. I<REQUIRED> | ||
| 242 | |||
| 243 | =item B<full> | ||
| 244 | |||
| 245 | This should contain descriptions of each option. This will also | ||
| 246 | be displayed along with the trivial help if BB_FEATURE_TRIVIAL_HELP | ||
| 247 | is disabled. I<REQUIRED> | ||
| 248 | |||
| 249 | =item B<notes> | ||
| 250 | |||
| 251 | This is documentation that is intended to go in the POD or SGML, but | ||
| 252 | not be output when a B<-h> is given to a command. To see an example | ||
| 253 | of notes being used, see init_notes_usage. I<OPTIONAL> | ||
| 254 | |||
| 255 | =item B<example> | ||
| 256 | |||
| 257 | This should be an example of how the command is acutally used. | ||
| 258 | I<OPTIONAL> | ||
| 259 | |||
| 260 | =back | ||
| 261 | |||
| 213 | =head1 FILES | 262 | =head1 FILES |
| 214 | 263 | ||
| 215 | F<usage.h> | 264 | F<usage.h> |
| @@ -226,4 +275,4 @@ John BEPPU <beppu@lineo.com> | |||
| 226 | 275 | ||
| 227 | =cut | 276 | =cut |
| 228 | 277 | ||
| 229 | # $Id: autodocifier.pl,v 1.17 2001/03/15 21:08:01 beppu Exp $ | 278 | # $Id: autodocifier.pl,v 1.18 2001/04/05 19:35:17 beppu Exp $ |
