PyukiWiki CVS Commit
pyuki****@lists*****
2012年 7月 31日 (火) 22:50:15 JST
Index: PyukiWiki-Devel-UTF8/build/compressfile.pl diff -u PyukiWiki-Devel-UTF8/build/compressfile.pl:1.385 PyukiWiki-Devel-UTF8/build/compressfile.pl:1.386 --- PyukiWiki-Devel-UTF8/build/compressfile.pl:1.385 Tue Jul 31 21:49:50 2012 +++ PyukiWiki-Devel-UTF8/build/compressfile.pl Tue Jul 31 22:50:15 2012 @@ -1,6 +1,6 @@ #!/usr/bin/perl # yuicompressor script -# $Id: compressfile.pl,v 1.385 2012/07/31 12:49:50 papu Exp $ +# $Id: compressfile.pl,v 1.386 2012/07/31 13:50:15 papu Exp $ use JavaScript::Packer; use CSS::Packer; @@ -102,18 +102,20 @@ &shell("$convert{utf8} $input.tmp $input.commentcut"); if($mode eq "js2") { - my $packer=JavaScript::Packer->init(); - open(R, "$input.tmp")||die("$input.tmp not found"); - $scalarref=join('', <R>); - close(R); - $packer->minify( \$scalarref, { compress=>'best' }); - open(W, ">$input.tmp2")||die("$input.tmp2 can't write"); - print W $scalarref; - close(W); - -# &shell("$compress{js21} $input.tmp21 $input.tmp"); -# &shell("$compress{js22} $input.tmp21 $input.tmp2"); -# &shell("$compress{js22} -i $input.tmp21 -o $input.tmp2"); +# my $packer=JavaScript::Packer->init(); +# open(R, "$input.tmp")||die("$input.tmp not found"); +# $scalarref=join('', <R>); +# close(R); +# $packer->minify( \$scalarref, { compress=>'shrink' }); +## $packer->minify( \$scalarref, { compress=>'best' }); +# open(W, ">$input.tmp2")||die("$input.tmp2 can't write"); +# print W $scalarref; +# close(W); + + &shell("$compress{js21} $input.tmp21 $input.tmp"); + &shell("$compress{js22} $input.tmp21 $input.tmp2"); + &shell("$compress{js22} -i $input.tmp21 -o $input.tmp2"); +# &shell("$compress{js22} -i $input.tmp -o $input.tmp2"); } else { $scalarref="";