PyukiWiki CVS Commit
pyuki****@lists*****
2012年 2月 27日 (月) 11:38:19 JST
Index: PyukiWiki-Devel/build/compressfile.pl diff -u PyukiWiki-Devel/build/compressfile.pl:1.342 PyukiWiki-Devel/build/compressfile.pl:1.343 --- PyukiWiki-Devel/build/compressfile.pl:1.342 Mon Feb 27 07:31:13 2012 +++ PyukiWiki-Devel/build/compressfile.pl Mon Feb 27 11:38:19 2012 @@ -1,13 +1,14 @@ #!/usr/bin/perl # yuicompressor script -# $Id: compressfile.pl,v 1.342 2012/02/26 22:31:13 papu Exp $ +# $Id: compressfile.pl,v 1.343 2012/02/27 02:38:19 papu Exp $ $mode=$ARGV[0]; $output=$ARGV[1]; $input=$ARGV[2]; $nohead=$ARGV[3]; print "compress $input -> $output\n"; -$compress{js}="yuicompressor --type js --charset utf8 -o"; +#$compress{js}="yuicompressor --type js --charset utf8 -o"; +$compress{js}="php ./build/example-file.php "; $compress{css}="yuicompressor --type css --charset utf8 -o"; $convert{utf8}="perl ./build/Jcode-convert.pl utf8"; $convert{euc}="perl ./build/Jcode-convert.pl euc"; @@ -36,7 +37,11 @@ close(R); &shell("$convert{utf8} $input.tmp $input.commentcut"); -&shell("$compress{$mode} $input.tmp2 $input.tmp"); +if($mode eq "js") { + &shell("$compress{$mode} $input.tmp $input.tmp2"); +} else { + &shell("$compress{$mode} $input.tmp2 $input.tmp"); +} &shell("$convert{euc} $input.tmp $input.tmp2"); open(R,"$input.tmp");