qooxdoo-commit Mailing List for qooxdoo (Page 1436)
Brought to you by:
ecker,
martinwittemann
You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(453) |
Feb
(800) |
Mar
(247) |
Apr
(324) |
May
(172) |
Jun
(145) |
Jul
(265) |
Aug
(447) |
Sep
(271) |
Oct
(312) |
Nov
(327) |
Dec
(472) |
| 2007 |
Jan
(493) |
Feb
(631) |
Mar
(565) |
Apr
(469) |
May
(757) |
Jun
(460) |
Jul
(440) |
Aug
(411) |
Sep
(813) |
Oct
(339) |
Nov
(112) |
Dec
(215) |
| 2008 |
Jan
(423) |
Feb
(671) |
Mar
(578) |
Apr
(566) |
May
(498) |
Jun
(411) |
Jul
(845) |
Aug
(1208) |
Sep
(176) |
Oct
(144) |
Nov
(216) |
Dec
(353) |
| 2009 |
Jan
(363) |
Feb
(700) |
Mar
(416) |
Apr
(362) |
May
(292) |
Jun
(238) |
Jul
(243) |
Aug
(216) |
Sep
(287) |
Oct
(304) |
Nov
(300) |
Dec
(416) |
| 2010 |
Jan
(200) |
Feb
(200) |
Mar
(183) |
Apr
(259) |
May
(217) |
Jun
(241) |
Jul
(320) |
Aug
(330) |
Sep
(209) |
Oct
(217) |
Nov
(460) |
Dec
(392) |
| 2011 |
Jan
(338) |
Feb
(465) |
Mar
(1257) |
Apr
(433) |
May
(505) |
Jun
(417) |
Jul
(438) |
Aug
(241) |
Sep
(258) |
Oct
(223) |
Nov
(224) |
Dec
(172) |
| 2012 |
Jan
(151) |
Feb
(119) |
Mar
(220) |
Apr
(182) |
May
(236) |
Jun
(264) |
Jul
(188) |
Aug
(145) |
Sep
(186) |
Oct
(183) |
Nov
(243) |
Dec
(126) |
| 2013 |
Jan
(133) |
Feb
(165) |
Mar
(122) |
Apr
(116) |
May
(177) |
Jun
(177) |
Jul
(290) |
Aug
(150) |
Sep
(165) |
Oct
(168) |
Nov
(252) |
Dec
(152) |
| 2014 |
Jan
(109) |
Feb
(150) |
Mar
(135) |
Apr
(186) |
May
(235) |
Jun
(181) |
Jul
(193) |
Aug
(117) |
Sep
(118) |
Oct
(194) |
Nov
(207) |
Dec
(261) |
| 2015 |
Jan
(138) |
Feb
(218) |
Mar
(180) |
Apr
(141) |
May
(114) |
Jun
(24) |
Jul
(22) |
Aug
(14) |
Sep
(22) |
Oct
(11) |
Nov
(7) |
Dec
(10) |
| 2016 |
Jan
(1) |
Feb
(31) |
Mar
(13) |
Apr
(30) |
May
(34) |
Jun
(25) |
Jul
(16) |
Aug
(14) |
Sep
(21) |
Oct
(20) |
Nov
(6) |
Dec
|
|
From: Benjamin R. <fir...@us...> - 2005-12-20 14:34:35
|
Update of /cvsroot/qooxdoo/qooxdoo/tools In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6336 Modified Files: Tag: renderer build_dist.pl Log Message: added compression flag Index: build_dist.pl =================================================================== RCS file: /cvsroot/qooxdoo/qooxdoo/tools/build_dist.pl,v retrieving revision 1.20.2.3 retrieving revision 1.20.2.4 diff -C2 -d -r1.20.2.3 -r1.20.2.4 *** build_dist.pl 18 Nov 2005 15:58:09 -0000 1.20.2.3 --- build_dist.pl 20 Dec 2005 14:34:23 -0000 1.20.2.4 *************** *** 24,27 **** --- 24,28 ---- my $basedir = $opt_b || '.'; my $fileSuffix = $opt_e || '.js'; + my $compress = $opt_c || 0; if ( !$package ) { *************** *** 72,169 **** @neededFiles = grep ++$t{$_} < 2, @neededFiles; # put all the files into $text find(\&searchFiles, ($basedir)); - appendFiles(); - - - # remove unnecessary stuff like comments and whitespace - print "Now compressing ".@neededFiles ." files \n"; - - $text =~ s/\/\*!?(?:.|[\r\n])*?\*\///gm; # multi-line comments, see http://ostermiller.org/findcomment.html - $text =~ s|//.*\n||g; # single-line comments see http://perlmonks.thepen.com/117150.html - - # cleanup '{', '}', '(', ')' ';' - $text =~ s|(\s+\{)|{|gm; - $text =~ s|(\s+\})|}|gm; - $text =~ s|(\s+\()|(|gm; - $text =~ s|(\s+\))|)|gm; - $text =~ s|(\{\s+)|{|gm; - $text =~ s|(\}\s+)|}|gm; - $text =~ s|(\(\s+)|(|gm; - $text =~ s|(\)\s+)|)|gm; - $text =~ s|(\;\s+)|;|gm; - $text =~ s|(\;\s+[^a-zA-Z])|;|gm; ! # shrink around '==' ! $text =~ s|\s+==|==|gm; ! $text =~ s|==\s+|==|gm; ! ! # shrink around '!=' ! $text =~ s|"\s+\!=|!=|gm; ! $text =~ s|\!=\s+|!=|gm; ! ! # shrink around '=' ! $text =~ s|\s+=|=|gm; ! $text =~ s|=\s+|=|gm; ! ! # shrink around ',' ! $text =~ s|\s+,|,|gm; ! $text =~ s|,\s+|,|gm; ! ! # shrink around ':' ! $text =~ s|\s+:|:|gm; ! $text =~ s|:\s+|:|gm; ! ! # shrink around '?' ! $text =~ s|\s+\?|?|gm; ! $text =~ s|\?\s+|?|gm; ! ! # shrink around '+' ! $text =~ s|\s+\+|+|gm; ! $text =~ s|\+\s+|+|gm; ! ! # shrink around '-' ! $text =~ s|\s+\-|-|gm; ! $text =~ s|\-\s+|-|gm; ! ! # shrink around '*' ! $text =~ s|\s+\*|*|gm; ! $text =~ s|\*\s+|*|gm; ! ! # shrink around '/' ! $text =~ s|\s+\/|/|gm; ! $text =~ s|\/\s+|/|gm; ! ! # shrink around '<' ! $text =~ s|\s+\<|<|gm; ! $text =~ s|\<\s+|<|gm; ! ! # shrink around '>' ! $text =~ s|\s+\>|>|gm; ! $text =~ s|\>\s+|>|gm; ! ! # shrink around ']' ! $text =~ s|\s+\]|]|gm; ! $text =~ s|\]\s+|]|gm; ! ! # shrink around '[' ! $text =~ s|\s+\[|[|gm; ! $text =~ s|\[\s+|[|gm; ! ! # shrink around '||' ! $text =~ s|\s+\|\|||||gm; ! $text =~ s|\|\|\s+||||gm; ! ! # shrink around '&&' ! $text =~ s|\s+\&\&|&&|gm; ! $text =~ s|\&\&\s+|&&|gm; - # strip extra white space - $text =~ s|\s{2,}| |gm; ! $text =~ s/\s*\n$//gm; # remove empty lines ! $text =~ s/^\s*//gm; # remove whitespace from beginning of line ! $text =~ s/\n/ /gm; # put all on one line # write modified $text to file --- 73,176 ---- @neededFiles = grep ++$t{$_} < 2, @neededFiles; + # put all the files into $text find(\&searchFiles, ($basedir)); ! grep { print "$_ --> $fileLocations{$_} \n" } keys %fileLocations; ! exit; ! appendFiles(); + if ( $compress ) { + # remove unnecessary stuff like comments and whitespace + print "Now compressing ".@neededFiles ." files \n"; + + $text =~ s/\/\*!?(?:.|[\r\n])*?\*\///gm; # multi-line comments, see http://ostermiller.org/findcomment.html + $text =~ s|//.*\n||g; # single-line comments see http://perlmonks.thepen.com/117150.html + + # cleanup '{', '}', '(', ')' ';' + $text =~ s|(\s+\{)|{|gm; + $text =~ s|(\s+\})|}|gm; + $text =~ s|(\s+\()|(|gm; + $text =~ s|(\s+\))|)|gm; + $text =~ s|(\{\s+)|{|gm; + $text =~ s|(\}\s+)|}|gm; + $text =~ s|(\(\s+)|(|gm; + $text =~ s|(\)\s+)|)|gm; + $text =~ s|(\;\s+)|;|gm; + $text =~ s|(\;\s+[^a-zA-Z])|;|gm; + + # shrink around '==' + $text =~ s|\s+==|==|gm; + $text =~ s|==\s+|==|gm; + + # shrink around '!=' + $text =~ s|"\s+\!=|!=|gm; + $text =~ s|\!=\s+|!=|gm; + + # shrink around '=' + $text =~ s|\s+=|=|gm; + $text =~ s|=\s+|=|gm; + + # shrink around ',' + $text =~ s|\s+,|,|gm; + $text =~ s|,\s+|,|gm; + + # shrink around ':' + $text =~ s|\s+:|:|gm; + $text =~ s|:\s+|:|gm; + + # shrink around '?' + $text =~ s|\s+\?|?|gm; + $text =~ s|\?\s+|?|gm; + + # shrink around '+' + $text =~ s|\s+\+|+|gm; + $text =~ s|\+\s+|+|gm; + + # shrink around '-' + $text =~ s|\s+\-|-|gm; + $text =~ s|\-\s+|-|gm; + + # shrink around '*' + $text =~ s|\s+\*|*|gm; + $text =~ s|\*\s+|*|gm; + + # shrink around '/' + $text =~ s|\s+\/|/|gm; + $text =~ s|\/\s+|/|gm; + + # shrink around '<' + $text =~ s|\s+\<|<|gm; + $text =~ s|\<\s+|<|gm; + + # shrink around '>' + $text =~ s|\s+\>|>|gm; + $text =~ s|\>\s+|>|gm; + + # shrink around ']' + $text =~ s|\s+\]|]|gm; + $text =~ s|\]\s+|]|gm; + + # shrink around '[' + $text =~ s|\s+\[|[|gm; + $text =~ s|\[\s+|[|gm; + + # shrink around '||' + $text =~ s|\s+\|\|||||gm; + $text =~ s|\|\|\s+||||gm; + + # shrink around '&&' + $text =~ s|\s+\&\&|&&|gm; + $text =~ s|\&\&\s+|&&|gm; + + # strip extra white space + $text =~ s|\s{2,}| |gm; + + $text =~ s/\s*\n$//gm; # remove empty lines + $text =~ s/^\s*//gm; # remove whitespace from beginning of line + $text =~ s/\n/ /gm; # put all on one line + } # write modified $text to file *************** *** 254,258 **** " -b <base_dir> base directory from which searching for dependencies should\n". " be started (defaults to current directory)\n". ! " -p <package> comma-separated list of package names that should be packed into the output file.\n\n"; } --- 261,266 ---- " -b <base_dir> base directory from which searching for dependencies should\n". " be started (defaults to current directory)\n". ! " -p <package> comma-separated list of package names that should be packed into the output file.\n\n". ! " -c if specified the output is 'compressed' (comments stripped, everything on one line etc.)\n\n"; } |