svn commit: trunk/busybox/docs
landley at busybox.net
landley at busybox.net
Thu Jul 27 14:59:37 UTC 2006
Author: landley
Date: 2006-07-27 07:59:36 -0700 (Thu, 27 Jul 2006)
New Revision: 15751
Log:
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.
Modified:
trunk/busybox/docs/autodocifier.pl
Changeset:
Modified: trunk/busybox/docs/autodocifier.pl
===================================================================
--- trunk/busybox/docs/autodocifier.pl 2006-07-27 11:18:36 UTC (rev 15750)
+++ trunk/busybox/docs/autodocifier.pl 2006-07-27 14:59:36 UTC (rev 15751)
@@ -21,8 +21,8 @@
# regex && eval away unwanted strings from documentation
sub beautify {
my $text = shift;
- $text =~ s/USAGE_NOT\w+\(.*?"\s*\)//sxg;
- $text =~ s/USAGE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg;
+ $text =~ s/SKIP_\w+\(.*?"\s*\)//sxg;
+ $text =~ s/USE_\w+\(\s*?(.*?)"\s*\)/$1"/sxg;
$text =~ s/"\s*"//sg;
my @line = split("\n", $text);
$text = join('',
More information about the busybox-cvs
mailing list