aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbeppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-23 16:15:34 +0000
committerbeppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-23 16:15:34 +0000
commit902211e68a537c6f765119d189d723bd78b62386 (patch)
treee10ac661d3240f3e3314f44447988d9be57db40d /docs
parent113bf3fb55a4f3f9b462c9a3440db21a44111374 (diff)
downloadbusybox-w32-902211e68a537c6f765119d189d723bd78b62386.tar.gz
busybox-w32-902211e68a537c6f765119d189d723bd78b62386.tar.bz2
busybox-w32-902211e68a537c6f765119d189d723bd78b62386.zip
This one should be able to deal with the USAGE macros a little
more robustly. I also blow away any USAGE_NOT_\w+ macros. git-svn-id: svn://busybox.net/trunk/busybox@1915 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index 1a50cd533..1f8cdc35e 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -21,8 +21,9 @@ sub continuation {
21# regex && eval away unwanted strings from documentation 21# regex && eval away unwanted strings from documentation
22sub beautify { 22sub beautify {
23 my $text = shift; 23 my $text = shift;
24 $text =~ s/USAGE_\w+\([\s]*?(".*?").*?\)/$1/sg; 24 $text =~ s/USAGE_NOT\w+\(.*?"\s*\)//sxg;
25 $text =~ s/"[\s]*"//sg; 25 $text =~ s/USAGE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg;
26 $text =~ s/"\s*"//sg;
26 my @line = split("\n", $text); 27 my @line = split("\n", $text);
27 $text = join('', 28 $text = join('',
28 map { eval } 29 map { eval }
@@ -35,6 +36,8 @@ sub beautify {
35 } 36 }
36 @line 37 @line
37 ); 38 );
39 print STDERR "-- d\n";
40 print STDERR $text;
38 return $text; 41 return $text;
39} 42}
40 43
@@ -179,4 +182,4 @@ John BEPPU <beppu@lineo.com>
179 182
180=cut 183=cut
181 184
182# $Id: autodocifier.pl,v 1.5 2001/02/23 13:04:39 beppu Exp $ 185# $Id: autodocifier.pl,v 1.6 2001/02/23 16:15:34 beppu Exp $