aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-27 15:12:21 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-27 15:12:21 +0000
commitea71a180186853f3009dce3f8ff2a916b67db1f5 (patch)
tree2f082bba6e8a01af8a8b1549b5668ea4948b3b05 /docs
parent8769cad0b33b2af5dcfdee9e44bb34d798f8ddcb (diff)
downloadbusybox-w32-ea71a180186853f3009dce3f8ff2a916b67db1f5.tar.gz
busybox-w32-ea71a180186853f3009dce3f8ff2a916b67db1f5.tar.bz2
busybox-w32-ea71a180186853f3009dce3f8ff2a916b67db1f5.zip
And now, with a for loop, so it can handle the nested USE() case.
git-svn-id: svn://busybox.net/trunk/busybox@15753 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index c39260acb..4acb6bdc8 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -21,8 +21,12 @@ 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/SKIP_\w+\(.*?"\s*\)//sxg; 24 for (;;) {
25 $text =~ s/USE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg; 25 my $text2 = $text;
26 $text =~ s/SKIP_\w+\(.*?"\s*\)//sxg;
27 $text =~ s/USE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg;
28 last if ( $text2 eq $text );
29 }
26 $text =~ s/"\s*"//sg; 30 $text =~ s/"\s*"//sg;
27 my @line = split("\n", $text); 31 my @line = split("\n", $text);
28 $text = join('', 32 $text = join('',