X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=tool%2Fgenerate-mouse-tiny.pl;h=fab7e68c55bd2c2050c7af26720abafeae3c9d26;hp=71d6b60d91be7c942567cd2e2ab197ee01d6cb0d;hb=4b7f0b170d8518b09bf776647b67ccf71b72aea0;hpb=483111589df87c90ac897c386c79fbbf1e1aeabb diff --git a/tool/generate-mouse-tiny.pl b/tool/generate-mouse-tiny.pl index 71d6b60..fab7e68 100644 --- a/tool/generate-mouse-tiny.pl +++ b/tool/generate-mouse-tiny.pl @@ -32,6 +32,7 @@ find({ && /\.pm$/ && !/Squirrel/ && !/Tiny/ + && !/Test/ # only for testing && !/Spec/ # has no functionality && !/TypeRegistry/ # deprecated && !/\bouse/ # ouse.pm @@ -54,6 +55,8 @@ for my $file (uniq $contents =~ s/__END__\b.*//s; # remove documentation $contents =~ s/1;\n*$//; # remove success indicator + $contents =~ s{^( (?:[ ]{4})+ )}{ "\t" x (length($1) / 4) }xmsge; # spaces to tabs + $mouse_tiny .= "BEGIN{ # $file\n"; $mouse_tiny .= $contents; $mouse_tiny .= "}\n"; @@ -71,7 +74,7 @@ EOF print { $handle } << 'EOF'; # if regular Mouse is loaded, bail out unless ($INC{'Mouse.pm'}) { - # tell Perl we already have all of the Mouse files loaded: +# tell Perl we already have all of the Mouse files loaded: EOF for my $file (@files) {