aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-27 14:59:36 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-27 14:59:36 +0000
commit6216530ade2ae38e20b816e1a6afc71dd83b3063 (patch)
tree7548e7ab87d3e6a4a1932125ca138b28a31f8c98 /docs
parentdf5d28365a7fb5f6a4125e3f0cac709a7f4b3b98 (diff)
downloadbusybox-w32-6216530ade2ae38e20b816e1a6afc71dd83b3063.tar.gz
busybox-w32-6216530ade2ae38e20b816e1a6afc71dd83b3063.tar.bz2
busybox-w32-6216530ade2ae38e20b816e1a6afc71dd83b3063.zip
I touched perl. I feel dirty.
Make autodocifier suck less. It still doesn't handle nested USE( USE() ) case (the inner USE() winds up in the output), but making it recursive involves getting perl to accept a "for" loop and it's telling me that "break" is an unrecognized bareword and I hate perl. This is at least an improvement. git-svn-id: svn://busybox.net/trunk/busybox@15751 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'docs')
-rwxr-xr-xdocs/autodocifier.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/autodocifier.pl b/docs/autodocifier.pl
index fa8c4c08a..c39260acb 100755
--- a/docs/autodocifier.pl
+++ b/docs/autodocifier.pl
@@ -21,8 +21,8 @@ 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_NOT\w+\(.*?"\s*\)//sxg; 24 $text =~ s/SKIP_\w+\(.*?"\s*\)//sxg;
25 $text =~ s/USAGE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg; 25 $text =~ s/USE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg;
26 $text =~ s/"\s*"//sg; 26 $text =~ s/"\s*"//sg;
27 my @line = split("\n", $text); 27 my @line = split("\n", $text);
28 $text = join('', 28 $text = join('',