aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbeppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-23 03:12:45 +0000
committerbeppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-23 03:12:45 +0000
commit7348995d565fe23369cbe6a3389b1fd4cb9ebeb4 (patch)
tree264af7a2ab04d6c5c30839235b18aaf26c615473 /docs
parent57eacf9fe2ce5e58895f6f094f48ec08e30835e3 (diff)
downloadbusybox-w32-7348995d565fe23369cbe6a3389b1fd4cb9ebeb4.tar.gz
busybox-w32-7348995d565fe23369cbe6a3389b1fd4cb9ebeb4.tar.bz2
busybox-w32-7348995d565fe23369cbe6a3389b1fd4cb9ebeb4.zip
I can't leave it alone.
git-svn-id: svn://busybox.net/trunk/busybox@1903 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl15
1 files changed, 7 insertions, 8 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index a6e19129c..8e1ab0a74 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -46,9 +46,10 @@ sub pod_for_usage {
46 my $trivial = $usage->{trivial}; 46 my $trivial = $usage->{trivial};
47 $trivial =~s/(?<!\w)(-\w+)/B<$1>/sxg; 47 $trivial =~s/(?<!\w)(-\w+)/B<$1>/sxg;
48 48
49 my @full = 49 my $full =
50 join("\n"
50 map { $_ !~ /^\s/ && s/(?<!\w)(-\w+)/B<$1>/g; $_ } 51 map { $_ !~ /^\s/ && s/(?<!\w)(-\w+)/B<$1>/g; $_ }
51 split("\n", $usage->{full}); 52 split("\n", $usage->{full}));
52 53
53 return 54 return
54 "-------------------------------\n". 55 "-------------------------------\n".
@@ -57,7 +58,7 @@ sub pod_for_usage {
57 "\n\n". 58 "\n\n".
58 "$name $trivial". 59 "$name $trivial".
59 "\n\n". 60 "\n\n".
60 join("\n", @full). 61 $full.
61 "\n\n" 62 "\n\n"
62 ; 63 ;
63} 64}
@@ -146,11 +147,9 @@ The purpose of this script is to automagically generate documentation
146for busybox using its usage.h as the original source for content. 147for busybox using its usage.h as the original source for content.
147Currently, the same content has to be duplicated in 3 places in 148Currently, the same content has to be duplicated in 3 places in
148slightly different formats -- F<usage.h>, F<docs/busybox.pod>, and 149slightly different formats -- F<usage.h>, F<docs/busybox.pod>, and
149F<docs/busybox.sgml>. Duplicating the same content in these 3 places 150F<docs/busybox.sgml>. This is tedious, so Perl has come to the rescue.
150is tedious, so Perl has come to the rescue.
151 151
152This script was based on an original work by 152This script was based on a script by Erik Andersen (andersen@lineo.com).
153Erik Andersen (andersen@lineo.com).
154 153
155=head1 OPTIONS 154=head1 OPTIONS
156 155
@@ -180,4 +179,4 @@ John BEPPU <beppu@lineo.com>
180 179
181=cut 180=cut
182 181
183# $Id: autodocifier.pl,v 1.3 2001/02/23 02:54:31 beppu Exp $ 182# $Id: autodocifier.pl,v 1.4 2001/02/23 03:12:45 beppu Exp $