[Pyukiwiki-cvs 0012668] CVS update: PyukiWiki-Devel/build

Back to archive index

PyukiWiki CVS Commit pyuki****@lists*****
2012年 7月 31日 (火) 22:50:13 JST


Index: PyukiWiki-Devel/build/compressfile.pl
diff -u PyukiWiki-Devel/build/compressfile.pl:1.444 PyukiWiki-Devel/build/compressfile.pl:1.445
--- PyukiWiki-Devel/build/compressfile.pl:1.444	Tue Jul 31 21:49:50 2012
+++ PyukiWiki-Devel/build/compressfile.pl	Tue Jul 31 22:50:13 2012
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 # yuicompressor script
-# $Id: compressfile.pl,v 1.444 2012/07/31 12:49:50 papu Exp $
+# $Id: compressfile.pl,v 1.445 2012/07/31 13:50:13 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="";



Pyukiwiki-cvs メーリングリストの案内
Back to archive index