summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJohn Beppu2001-02-23 17:51:08 +0000
committerJohn Beppu2001-02-23 17:51:08 +0000
commite6967b20cb5fac3137701f66af5abb8123e3eedd (patch)
tree8185e05d49670bcff5212da73d13d74a34c03e11 /docs
parent3757f98d86b7ad467049e6b0fcd40a865faaa334 (diff)
downloadbusybox-e6967b20cb5fac3137701f66af5abb8123e3eedd.zip
busybox-e6967b20cb5fac3137701f66af5abb8123e3eedd.tar.gz
Added some documentation and made --sgml use sgml_from_usage().
pod_from_usage() is the default generator.
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl33
1 files changed, 24 insertions, 9 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index e02bca9..1190160 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -81,7 +81,10 @@ sub sgml_for_usage {
my $name = shift;
my $usage = shift;
return
- "FIXME";
+ "<fixme>\n".
+ " $name\n".
+ "</fixme>\n"
+ ;
}
# the keys are applet names, and
@@ -135,11 +138,13 @@ foreach (@ARGV) {
}
}
-#use Data::Dumper;
-#print Data::Dumper->Dump([\%docs], [qw(docs)]);
+my $generator = \&pod_for_usage;
+if (defined $opt{sgml}) {
+ $generator = \&sgml_for_usage;
+}
foreach my $name (sort keys %docs) {
- print pod_for_usage($name, $docs{$name});
+ print $generator->($name, $docs{$name});
}
exit 0;
@@ -166,19 +171,29 @@ This script was based on a script by Erik Andersen (andersen@lineo.com).
=head1 OPTIONS
-these control my behaviour
-
-=over 8
+=over 4
=item --help
This displays the help message.
+=item --pod
+
+Generate POD (this is the default)
+
+=item --sgml
+
+Generate SGML
+
+=item --verbose
+
+Be verbose (not implemented)
+
=back
=head1 FILES
-files that I manipulate
+F<usage.h>
=head1 COPYRIGHT
@@ -192,4 +207,4 @@ John BEPPU <beppu@lineo.com>
=cut
-# $Id: autodocifier.pl,v 1.8 2001/02/23 17:41:41 beppu Exp $
+# $Id: autodocifier.pl,v 1.9 2001/02/23 17:51:08 beppu Exp $