[pkg-java] r13572 - in tags/yui-compressor: . 2.4.6-1/debian 2.4.6-1/debian/patches
Damien Raude-Morvan
drazzib at alioth.debian.org
Mon Apr 25 10:13:19 UTC 2011
Author: drazzib
Date: 2011-04-25 10:13:10 +0000 (Mon, 25 Apr 2011)
New Revision: 13572
Added:
tags/yui-compressor/2.4.6-1/
tags/yui-compressor/2.4.6-1/debian/changelog
tags/yui-compressor/2.4.6-1/debian/control
tags/yui-compressor/2.4.6-1/debian/copyright
tags/yui-compressor/2.4.6-1/debian/patches/parser.patch
tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch
tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch
tags/yui-compressor/2.4.6-1/debian/rules
tags/yui-compressor/2.4.6-1/debian/source/
tags/yui-compressor/2.4.6-1/debian/watch
Removed:
tags/yui-compressor/2.4.6-1/debian/README.source
tags/yui-compressor/2.4.6-1/debian/changelog
tags/yui-compressor/2.4.6-1/debian/control
tags/yui-compressor/2.4.6-1/debian/copyright
tags/yui-compressor/2.4.6-1/debian/patches/parser.patch
tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch
tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch
tags/yui-compressor/2.4.6-1/debian/rules
tags/yui-compressor/2.4.6-1/debian/watch
Log:
[svn-buildpackage] Tagging yui-compressor 2.4.6-1
Deleted: tags/yui-compressor/2.4.6-1/debian/README.source
===================================================================
--- trunk/yui-compressor/debian/README.source 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/README.source 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,2 +0,0 @@
-this package uses quilt for its patch system, see:
-/usr/share/doc/quilt/README.source
Deleted: tags/yui-compressor/2.4.6-1/debian/changelog
===================================================================
--- trunk/yui-compressor/debian/changelog 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/changelog 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,29 +0,0 @@
-yui-compressor (2.4.2-2) unstable; urgency=low
-
- * Add Depends on a Java runtime (Closes: #565645)
- * Depends on libjargs-java instead of embedding it inside yui-compressor
- (see use-system-libraries.patch)
- * Update Vcs-* fields to reflect package name change
- (yuicompressor -> yui-compressor)
- * Create extended manpage from help output
- - remove docbook debian/yui-compressor.1.xml
- - remove Build-Depends on docbook2x
- * Use java-wrappers for bin/yui-compressor launcher script
-
- -- Damien Raude-Morvan <drazzib at debian.org> Sun, 17 Jan 2010 19:51:06 +0100
-
-yui-compressor (2.4.2-1) unstable; urgency=low
-
- [ Dominik Smatana ]
- * Initial release (closes: #519938)
-
- [ Michael Gilbert ]
- * Download the required rhino source files in the orig tarball
- fetching script.
- * Add patches for build file to use system rhino and jargs libraries.
- * Apply yui-compressor patches to the included rhino source.
- * Add a README.source to describe the patch system.
- * Add a launcher shell script.
- * Add a manpage for the shell script.
-
- -- Michael Gilbert <michael.s.gilbert at gmail.com> Thu, 07 Jan 2010 21:34:14 -0500
Copied: tags/yui-compressor/2.4.6-1/debian/changelog (from rev 13571, trunk/yui-compressor/debian/changelog)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/changelog (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/changelog 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,39 @@
+yui-compressor (2.4.6-1) unstable; urgency=low
+
+ * New upstream release (Closes: #622856).
+ * Bump Standards-Version to 3.9.2 (no changes needed).
+ * Switch to 3.0 (quilt) source format.
+ * d/watch: Upstream has broken scanning. Disable uscan for now.
+ * d/copyright: Update copyright years and paste full licence text.
+
+ -- Damien Raude-Morvan <drazzib at debian.org> Mon, 25 Apr 2011 11:50:28 +0200
+
+yui-compressor (2.4.2-2) unstable; urgency=low
+
+ * Add Depends on a Java runtime (Closes: #565645)
+ * Depends on libjargs-java instead of embedding it inside yui-compressor
+ (see use-system-libraries.patch)
+ * Update Vcs-* fields to reflect package name change
+ (yuicompressor -> yui-compressor)
+ * Create extended manpage from help output
+ - remove docbook debian/yui-compressor.1.xml
+ - remove Build-Depends on docbook2x
+ * Use java-wrappers for bin/yui-compressor launcher script
+
+ -- Damien Raude-Morvan <drazzib at debian.org> Sun, 17 Jan 2010 19:51:06 +0100
+
+yui-compressor (2.4.2-1) unstable; urgency=low
+
+ [ Dominik Smatana ]
+ * Initial release (closes: #519938)
+
+ [ Michael Gilbert ]
+ * Download the required rhino source files in the orig tarball
+ fetching script.
+ * Add patches for build file to use system rhino and jargs libraries.
+ * Apply yui-compressor patches to the included rhino source.
+ * Add a README.source to describe the patch system.
+ * Add a launcher shell script.
+ * Add a manpage for the shell script.
+
+ -- Michael Gilbert <michael.s.gilbert at gmail.com> Thu, 07 Jan 2010 21:34:14 -0500
Deleted: tags/yui-compressor/2.4.6-1/debian/control
===================================================================
--- trunk/yui-compressor/debian/control 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/control 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,25 +0,0 @@
-Source: yui-compressor
-Section: java
-Priority: optional
-Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
-Uploaders: Dominik Smatana <dominik.smatana at gmail.com>, Damien Raude-Morvan <drazzib at debian.org>,
- Michael Gilbert <michael.s.gilbert at gmail.com>
-Build-Depends: cdbs, debhelper (>= 7), default-jdk, ant, quilt
-Build-Depends-Indep: libjargs-java, rhino (>= 1.7R2), rhino (<< 1.7R3)
-Homepage: http://developer.yahoo.com/yui/compressor/
-Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/yui-compressor/
-Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/yui-compressor/
-Standards-Version: 3.8.3
-
-Package: yui-compressor
-Architecture: all
-Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless, libjargs-java, java-wrappers
-Description: JavaScript/CSS minifier
- The YUI Compressor is a JavaScript compressor which, in addition to removing
- comments and white-spaces, obfuscates local variables using the smallest
- possible variable name. This obfuscation is safe, even when using constructs
- such as 'eval' or 'with' (although the compression is not optimal is those
- cases) Compared to jsmin, the average savings is around 20%.
- .
- The YUI Compressor is also able to safely compress CSS files. The decision
- on which compressor is being used is made on the file extension (js or css).
Copied: tags/yui-compressor/2.4.6-1/debian/control (from rev 13571, trunk/yui-compressor/debian/control)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/control (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/control 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,25 @@
+Source: yui-compressor
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Dominik Smatana <dominik.smatana at gmail.com>, Damien Raude-Morvan <drazzib at debian.org>,
+ Michael Gilbert <michael.s.gilbert at gmail.com>
+Build-Depends: cdbs, debhelper (>= 7), default-jdk, ant
+Build-Depends-Indep: libjargs-java, rhino (>= 1.7R2), rhino (<< 1.7R3)
+Homepage: http://yuilibrary.com/projects/yuicompressor/
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/yui-compressor/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/yui-compressor/
+Standards-Version: 3.9.2
+
+Package: yui-compressor
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java5-runtime-headless, libjargs-java, java-wrappers
+Description: JavaScript/CSS minifier
+ The YUI Compressor is a JavaScript compressor which, in addition to removing
+ comments and white-spaces, obfuscates local variables using the smallest
+ possible variable name. This obfuscation is safe, even when using constructs
+ such as 'eval' or 'with' (although the compression is not optimal is those
+ cases) Compared to jsmin, the average savings is around 20%.
+ .
+ The YUI Compressor is also able to safely compress CSS files. The decision
+ on which compressor is being used is made on the file extension (js or css).
Deleted: tags/yui-compressor/2.4.6-1/debian/copyright
===================================================================
--- trunk/yui-compressor/debian/copyright 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/copyright 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,65 +0,0 @@
-Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=454
-Upstream-Name: YUI Compressor
-Upstream-Maintainer: Julien Lecomte <jlecomte at yahoo-inc.com>
-Upstream-Source: http://developer.yahoo.com/yui/compressor/
-
-Files: *
-Copyright: Copyright 2007-2009, Yahoo! Inc. All rights reserved.
-License: BSD
- http://developer.yahoo.com/yui/license.html
- On Debian systems the full text of the BSD License
- can be found in the '/usr/share/common-licenses/BSD' file.
-
-Files: src/com/yahoo/platform/yui/compressor/CssCompressor.java
-Copyright: Copyright 2007-2009, Yahoo! Inc. All rights reserved.
-License: BSD
- This code is a port of Isaac Schlueter's cssmin utility.
- This code is licensed under the BSD License:
- http://developer.yahoo.com/yui/license.html
- On Debian systems the full text of the BSD License
- can be found in the '/usr/share/common-licenses/BSD' file.
-
-Files: src/org/*
-Copyright: Copyright 1997-1999, Netscape Communications Corporation.
-License: MPL-1.1 | GPL-2+
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- .
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
- .
- The Original Code is Rhino code, released
- May 6, 1999.
- .
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 1997-1999
- the Initial Developer. All Rights Reserved.
- .
- Contributor(s):
- Mike Ang
- Igor Bukanov
- Bob Jervis
- Mike McCabe
- .
- Alternatively, the contents of this file may be used under the terms of
- the GNU General Public License Version 2 or later (the "GPL"), in which
- case the provisions of the GPL are applicable instead of those above. If
- you wish to allow use of your version of this file only under the terms of
- the GPL and not to allow others to use your version of this file under the
- MPL, indicate your decision by deleting the provisions above and replacing
- them with the notice and other provisions required by the GPL. If you do
- not delete the provisions above, a recipient may use your version of this
- file under either the MPL or the GPL.
-
-Files: debian/*
-Copyright: Copyright 2009, Dominik Smatana <dominik.smatana at gmail.com>
-Copyright: Copyright 2009, Damien Raude-Morvan <drazzib at debian.org>
-License: GPL-3
- On Debian systems the full text of the GNU General Public License version 3
- can be found in the '/usr/share/common-licenses/GPL-3' file.
-
Copied: tags/yui-compressor/2.4.6-1/debian/copyright (from rev 13571, trunk/yui-compressor/debian/copyright)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/copyright (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/copyright 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,115 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174
+Upstream-Name: YUI Compressor
+Upstream-Contact: Julien Lecomte <jlecomte at yahoo-inc.com>
+Source: http://yuilibrary.com/projects/yuicompressor/
+
+Files: *
+Copyright: Copyright 2007-2011, Yahoo! Inc. All rights reserved.
+License: BSD
+ Redistribution and use of this software in source and binary forms,
+ with or without modification, are permitted provided that the following
+ conditions are met:
+ .
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+ .
+ * Neither the name of Yahoo! Inc. nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior
+ written permission of Yahoo! Inc.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: src/com/yahoo/platform/yui/compressor/CssCompressor.java
+Copyright: Copyright 2007-2009, Yahoo! Inc. All rights reserved.
+License: BSD
+ This code is a port of Isaac Schlueter's cssmin utility.
+ .
+ Redistribution and use of this software in source and binary forms,
+ with or without modification, are permitted provided that the following
+ conditions are met:
+ .
+ * Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the
+ following disclaimer.
+ .
+ * Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the
+ following disclaimer in the documentation and/or other
+ materials provided with the distribution.
+ .
+ * Neither the name of Yahoo! Inc. nor the names of its
+ contributors may be used to endorse or promote products
+ derived from this software without specific prior
+ written permission of Yahoo! Inc.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: src/org/*
+Copyright: Copyright 1997-1999, Netscape Communications Corporation.
+License: MPL-1.1 | GPL-2+
+ The contents of this file are subject to the Mozilla Public License Version
+ 1.1 (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+ http://www.mozilla.org/MPL/
+ .
+ Software distributed under the License is distributed on an "AS IS" basis,
+ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ for the specific language governing rights and limitations under the
+ License.
+ .
+ The Original Code is Rhino code, released
+ May 6, 1999.
+ .
+ The Initial Developer of the Original Code is
+ Netscape Communications Corporation.
+ Portions created by the Initial Developer are Copyright (C) 1997-1999
+ the Initial Developer. All Rights Reserved.
+ .
+ Contributor(s):
+ Mike Ang
+ Igor Bukanov
+ Bob Jervis
+ Mike McCabe
+ .
+ Alternatively, the contents of this file may be used under the terms of
+ the GNU General Public License Version 2 or later (the "GPL"), in which
+ case the provisions of the GPL are applicable instead of those above. If
+ you wish to allow use of your version of this file only under the terms of
+ the GPL and not to allow others to use your version of this file under the
+ MPL, indicate your decision by deleting the provisions above and replacing
+ them with the notice and other provisions required by the GPL. If you do
+ not delete the provisions above, a recipient may use your version of this
+ file under either the MPL or the GPL.
+
+Files: debian/*
+Copyright: Copyright 2009, Dominik Smatana <dominik.smatana at gmail.com>
+Copyright: Copyright 2009-2011, Damien Raude-Morvan <drazzib at debian.org>
+License: GPL-3
+ On Debian systems the full text of the GNU General Public License version 3
+ can be found in the '/usr/share/common-licenses/GPL-3' file.
+
Deleted: tags/yui-compressor/2.4.6-1/debian/patches/parser.patch
===================================================================
--- trunk/yui-compressor/debian/patches/parser.patch 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/patches/parser.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,37 +0,0 @@
-YUI patch for the Rhino library's Parser.java
-===================================================================
---- a/src/org/mozilla/javascript/Parser.java 2008-11-14 10:13:36.000000000 -0500
-+++ b/src/org/mozilla/javascript/Parser.java 2008-11-14 10:13:36.000000000 -0500
-@@ -163,11 +163,30 @@
- {
- int tt = currentFlaggedToken;
- if (tt == Token.EOF) {
-- tt = ts.getToken();
-+
-+ while ((tt = ts.getToken()) == Token.CONDCOMMENT || tt == Token.KEEPCOMMENT) {
-+ if (tt == Token.CONDCOMMENT) {
-+ /* Support for JScript conditional comments */
-+ decompiler.addJScriptConditionalComment(ts.getString());
-+ } else {
-+ /* Support for preserved comments */
-+ decompiler.addPreservedComment(ts.getString());
-+ }
-+ }
-+
- if (tt == Token.EOL) {
- do {
- tt = ts.getToken();
-- } while (tt == Token.EOL);
-+
-+ if (tt == Token.CONDCOMMENT) {
-+ /* Support for JScript conditional comments */
-+ decompiler.addJScriptConditionalComment(ts.getString());
-+ } else if (tt == Token.KEEPCOMMENT) {
-+ /* Support for preserved comments */
-+ decompiler.addPreservedComment(ts.getString());
-+ }
-+
-+ } while (tt == Token.EOL || tt == Token.CONDCOMMENT || tt == Token.KEEPCOMMENT);
- tt |= TI_AFTER_EOL;
- }
- currentFlaggedToken = tt;
Copied: tags/yui-compressor/2.4.6-1/debian/patches/parser.patch (from rev 13571, trunk/yui-compressor/debian/patches/parser.patch)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/patches/parser.patch (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/patches/parser.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,37 @@
+YUI patch for the Rhino library's Parser.java
+===================================================================
+--- a/src/org/mozilla/javascript/Parser.java
++++ b/src/org/mozilla/javascript/Parser.java
+@@ -169,11 +169,30 @@
+ {
+ int tt = currentFlaggedToken;
+ if (tt == Token.EOF) {
+- tt = ts.getToken();
++
++ while ((tt = ts.getToken()) == Token.CONDCOMMENT || tt == Token.KEEPCOMMENT) {
++ if (tt == Token.CONDCOMMENT) {
++ /* Support for JScript conditional comments */
++ decompiler.addJScriptConditionalComment(ts.getString());
++ } else {
++ /* Support for preserved comments */
++ decompiler.addPreservedComment(ts.getString());
++ }
++ }
++
+ if (tt == Token.EOL) {
+ do {
+ tt = ts.getToken();
+- } while (tt == Token.EOL);
++
++ if (tt == Token.CONDCOMMENT) {
++ /* Support for JScript conditional comments */
++ decompiler.addJScriptConditionalComment(ts.getString());
++ } else if (tt == Token.KEEPCOMMENT) {
++ /* Support for preserved comments */
++ decompiler.addPreservedComment(ts.getString());
++ }
++
++ } while (tt == Token.EOL || tt == Token.CONDCOMMENT || tt == Token.KEEPCOMMENT);
+ tt |= TI_AFTER_EOL;
+ }
+ currentFlaggedToken = tt;
Deleted: tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch
===================================================================
--- trunk/yui-compressor/debian/patches/tokenstream.patch 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,174 +0,0 @@
-YUI patch for the Rhino library's TokenStream.java
-===================================================================
---- a/src/org/mozilla/javascript/TokenStream.java.orig 2009-12-25 00:40:57.000000000 -0500
-+++ b/src/org/mozilla/javascript/TokenStream.java 2009-12-25 00:41:26.000000000 -0500
-@@ -526,7 +526,7 @@
- stringBufferTop = 0;
-
- c = getChar();
-- strLoop: while (c != quoteChar) {
-+ while (c != quoteChar) {
- if (c == '\n' || c == EOF_CHAR) {
- ungetChar(c);
- parser.addError("msg.unterminated.string.lit");
-@@ -535,89 +535,47 @@
-
- if (c == '\\') {
- // We've hit an escaped character
-- int escapeVal;
-
- c = getChar();
-+
- switch (c) {
-- case 'b': c = '\b'; break;
-- case 'f': c = '\f'; break;
-- case 'n': c = '\n'; break;
-- case 'r': c = '\r'; break;
-- case 't': c = '\t'; break;
--
-- // \v a late addition to the ECMA spec,
-- // it is not in Java, so use 0xb
-- case 'v': c = 0xb; break;
--
-- case 'u':
-- // Get 4 hex digits; if the u escape is not
-- // followed by 4 hex digits, use 'u' + the
-- // literal character sequence that follows.
-- int escapeStart = stringBufferTop;
-- addToString('u');
-- escapeVal = 0;
-- for (int i = 0; i != 4; ++i) {
-- c = getChar();
-- escapeVal = Kit.xDigitToInt(c, escapeVal);
-- if (escapeVal < 0) {
-- continue strLoop;
-- }
-- addToString(c);
-- }
-- // prepare for replace of stored 'u' sequence
-- // by escape value
-- stringBufferTop = escapeStart;
-- c = escapeVal;
-- break;
-- case 'x':
-- // Get 2 hex digits, defaulting to 'x'+literal
-- // sequence, as above.
-- c = getChar();
-- escapeVal = Kit.xDigitToInt(c, 0);
-- if (escapeVal < 0) {
-- addToString('x');
-- continue strLoop;
-- } else {
-- int c1 = c;
-- c = getChar();
-- escapeVal = Kit.xDigitToInt(c, escapeVal);
-- if (escapeVal < 0) {
-- addToString('x');
-- addToString(c1);
-- continue strLoop;
-- } else {
-- // got 2 hex digits
-- c = escapeVal;
-- }
-- }
-- break;
-
-- case '\n':
-- // Remove line terminator after escape to follow
-- // SpiderMonkey and C/C++
-- c = getChar();
-- continue strLoop;
-+ case '\\': // backslash
-+ case 'b': // backspace
-+ case 'f': // form feed
-+ case 'n': // line feed
-+ case 'r': // carriage return
-+ case 't': // horizontal tab
-+ case 'v': // vertical tab
-+ case 'd': // octal sequence
-+ case 'u': // unicode sequence
-+ case 'x': // hexadecimal sequence
-+ // Only keep the '\' character for those
-+ // characters that need to be escaped...
-+ // Don't escape quoting characters...
-+ addToString('\\');
-+ addToString(c);
-+ break;
-
-- default:
-- if ('0' <= c && c < '8') {
-- int val = c - '0';
-- c = getChar();
-- if ('0' <= c && c < '8') {
-- val = 8 * val + c - '0';
-- c = getChar();
-- if ('0' <= c && c < '8' && val <= 037) {
-- // c is 3rd char of octal sequence only
-- // if the resulting val <= 0377
-- val = 8 * val + c - '0';
-- c = getChar();
-- }
-+ case '\n':
-+ // Remove line terminator after escape
-+ break;
-+
-+ default:
-+ if (isDigit(c)) {
-+ // Octal representation of a character.
-+ // Preserve the escaping (see Y! bug #1637286)
-+ addToString('\\');
- }
-- ungetChar(c);
-- c = val;
-- }
-+ addToString(c);
-+ break;
- }
-+
-+ } else {
-+
-+ addToString(c);
- }
-- addToString(c);
-+
- c = getChar();
- }
-
-@@ -760,16 +718,35 @@
- }
- if (matchChar('*')) {
- boolean lookForSlash = false;
-+ StringBuffer sb = new StringBuffer();
- for (;;) {
- c = getChar();
- if (c == EOF_CHAR) {
- parser.addError("msg.unterminated.comment");
- return Token.ERROR;
-- } else if (c == '*') {
-+ }
-+ sb.append((char) c);
-+ if (c == '*') {
- lookForSlash = true;
- } else if (c == '/') {
- if (lookForSlash) {
-- continue retry;
-+ sb.delete(sb.length()-2, sb.length());
-+ String s1 = sb.toString();
-+ String s2 = s1.trim();
-+ if (s1.startsWith("!")) {
-+ // Remove the leading '!'
-+ this.string = s1.substring(1);
-+ return Token.KEEPCOMMENT;
-+ } else if (s2.startsWith("@cc_on") ||
-+ s2.startsWith("@if") ||
-+ s2.startsWith("@elif") ||
-+ s2.startsWith("@else") ||
-+ s2.startsWith("@end")) {
-+ this.string = s1;
-+ return Token.CONDCOMMENT;
-+ } else {
-+ continue retry;
-+ }
- }
- } else {
- lookForSlash = false;
Copied: tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch (from rev 13571, trunk/yui-compressor/debian/patches/tokenstream.patch)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/patches/tokenstream.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,174 @@
+YUI patch for the Rhino library's TokenStream.java
+===================================================================
+--- a/src/org/mozilla/javascript/TokenStream.java
++++ b/src/org/mozilla/javascript/TokenStream.java
+@@ -526,7 +526,7 @@
+ stringBufferTop = 0;
+
+ c = getChar();
+- strLoop: while (c != quoteChar) {
++ while (c != quoteChar) {
+ if (c == '\n' || c == EOF_CHAR) {
+ ungetChar(c);
+ parser.addError("msg.unterminated.string.lit");
+@@ -535,89 +535,47 @@
+
+ if (c == '\\') {
+ // We've hit an escaped character
+- int escapeVal;
+
+ c = getChar();
++
+ switch (c) {
+- case 'b': c = '\b'; break;
+- case 'f': c = '\f'; break;
+- case 'n': c = '\n'; break;
+- case 'r': c = '\r'; break;
+- case 't': c = '\t'; break;
+-
+- // \v a late addition to the ECMA spec,
+- // it is not in Java, so use 0xb
+- case 'v': c = 0xb; break;
+-
+- case 'u':
+- // Get 4 hex digits; if the u escape is not
+- // followed by 4 hex digits, use 'u' + the
+- // literal character sequence that follows.
+- int escapeStart = stringBufferTop;
+- addToString('u');
+- escapeVal = 0;
+- for (int i = 0; i != 4; ++i) {
+- c = getChar();
+- escapeVal = Kit.xDigitToInt(c, escapeVal);
+- if (escapeVal < 0) {
+- continue strLoop;
+- }
++
++ case '\\': // backslash
++ case 'b': // backspace
++ case 'f': // form feed
++ case 'n': // line feed
++ case 'r': // carriage return
++ case 't': // horizontal tab
++ case 'v': // vertical tab
++ case 'd': // octal sequence
++ case 'u': // unicode sequence
++ case 'x': // hexadecimal sequence
++ // Only keep the '\' character for those
++ // characters that need to be escaped...
++ // Don't escape quoting characters...
++ addToString('\\');
+ addToString(c);
+- }
+- // prepare for replace of stored 'u' sequence
+- // by escape value
+- stringBufferTop = escapeStart;
+- c = escapeVal;
+- break;
+- case 'x':
+- // Get 2 hex digits, defaulting to 'x'+literal
+- // sequence, as above.
+- c = getChar();
+- escapeVal = Kit.xDigitToInt(c, 0);
+- if (escapeVal < 0) {
+- addToString('x');
+- continue strLoop;
+- } else {
+- int c1 = c;
+- c = getChar();
+- escapeVal = Kit.xDigitToInt(c, escapeVal);
+- if (escapeVal < 0) {
+- addToString('x');
+- addToString(c1);
+- continue strLoop;
+- } else {
+- // got 2 hex digits
+- c = escapeVal;
+- }
+- }
+- break;
++ break;
+
+- case '\n':
+- // Remove line terminator after escape to follow
+- // SpiderMonkey and C/C++
+- c = getChar();
+- continue strLoop;
+-
+- default:
+- if ('0' <= c && c < '8') {
+- int val = c - '0';
+- c = getChar();
+- if ('0' <= c && c < '8') {
+- val = 8 * val + c - '0';
+- c = getChar();
+- if ('0' <= c && c < '8' && val <= 037) {
+- // c is 3rd char of octal sequence only
+- // if the resulting val <= 0377
+- val = 8 * val + c - '0';
+- c = getChar();
+- }
++ case '\n':
++ // Remove line terminator after escape
++ break;
++
++ default:
++ if (isDigit(c)) {
++ // Octal representation of a character.
++ // Preserve the escaping (see Y! bug #1637286)
++ addToString('\\');
+ }
+- ungetChar(c);
+- c = val;
+- }
++ addToString(c);
++ break;
+ }
++
++ } else {
++
++ addToString(c);
+ }
+- addToString(c);
++
+ c = getChar();
+ }
+
+@@ -760,16 +718,35 @@
+ }
+ if (matchChar('*')) {
+ boolean lookForSlash = false;
++ StringBuffer sb = new StringBuffer();
+ for (;;) {
+ c = getChar();
+ if (c == EOF_CHAR) {
+ parser.addError("msg.unterminated.comment");
+ return Token.ERROR;
+- } else if (c == '*') {
++ }
++ sb.append((char) c);
++ if (c == '*') {
+ lookForSlash = true;
+ } else if (c == '/') {
+ if (lookForSlash) {
+- continue retry;
++ sb.delete(sb.length()-2, sb.length());
++ String s1 = sb.toString();
++ String s2 = s1.trim();
++ if (s1.startsWith("!")) {
++ // Remove the leading '!'
++ this.string = s1.substring(1);
++ return Token.KEEPCOMMENT;
++ } else if (s2.startsWith("@cc_on") ||
++ s2.startsWith("@if") ||
++ s2.startsWith("@elif") ||
++ s2.startsWith("@else") ||
++ s2.startsWith("@end")) {
++ this.string = s1;
++ return Token.CONDCOMMENT;
++ } else {
++ continue retry;
++ }
+ }
+ } else {
+ lookForSlash = false;
Deleted: tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch
===================================================================
--- trunk/yui-compressor/debian/patches/use-system-libraries.patch 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,45 +0,0 @@
-Description:
- - use Debian's jargs ard rhino libraries during build
- - don't embed jargs inside yui-compressor jar
-Author: Michael Gilbert <michael.s.gilbert at gmail.com>
-Author: Damien Raude-Morvan <drazzib at debian.org>
-Last-Update: 2010-01-17
---- a/build.xml
-+++ b/build.xml
-@@ -20,10 +20,10 @@
- includes="**/*.java"
- deprecation="off"
- debug="on"
-- source="1.4">
-+ source="1.5">
- <classpath>
-- <pathelement location="${lib.dir}/jargs-1.0.jar"/>
-- <pathelement location="${lib.dir}/rhino-1.6R7.jar"/>
-+ <pathelement location="/usr/share/java/jargs.jar"/>
-+ <pathelement location="/usr/share/java/js.jar"/>
- </classpath>
- </javac>
- </target>
-@@ -32,13 +32,13 @@
- <mkdir dir="${build.dir}/jar"/>
- <!-- The order is important here. Rhino MUST be unjarred first!
- (some of our own classes will override the Rhino classes) -->
-- <unjar src="${lib.dir}/jargs-1.0.jar" dest="${build.dir}/jar"/>
-- <unjar src="${lib.dir}/rhino-1.6R7.jar" dest="${build.dir}/jar"/>
-+ <unjar src="/usr/share/java/js.jar" dest="${build.dir}/jar"/>
- <copy todir="${build.dir}/jar">
- <fileset dir="${build.dir}/classes" includes="**/*.class"/>
- </copy>
- <jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/jar">
- <manifest>
-+ <attribute name="Class-Path" value="/usr/share/java/jargs.jar"/>
- <attribute name="Main-Class" value="com.yahoo.platform.yui.compressor.Bootstrap"/>
- </manifest>
- </jar>
-@@ -63,4 +63,4 @@
- includes="${dist.package.name}/**/*"/>
- </target>
-
--</project>
-\ No newline at end of file
-+</project>
Copied: tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch (from rev 13571, trunk/yui-compressor/debian/patches/use-system-libraries.patch)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/patches/use-system-libraries.patch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,38 @@
+Description:
+ - use Debian's jargs ard rhino libraries during build
+ - don't embed jargs inside yui-compressor jar
+Author: Michael Gilbert <michael.s.gilbert at gmail.com>
+Author: Damien Raude-Morvan <drazzib at debian.org>
+Last-Update: 2010-01-17
+--- a/build.xml
++++ b/build.xml
+@@ -20,10 +20,10 @@
+ includes="**/*.java"
+ deprecation="off"
+ debug="on"
+- source="1.4">
++ source="1.5">
+ <classpath>
+- <pathelement location="${lib.dir}/jargs-1.0.jar"/>
+- <pathelement location="${lib.dir}/rhino-1.6R7.jar"/>
++ <pathelement location="/usr/share/java/jargs.jar"/>
++ <pathelement location="/usr/share/java/js.jar"/>
+ </classpath>
+ </javac>
+ </target>
+@@ -32,13 +32,13 @@
+ <mkdir dir="${build.dir}/jar"/>
+ <!-- The order is important here. Rhino MUST be unjarred first!
+ (some of our own classes will override the Rhino classes) -->
+- <unjar src="${lib.dir}/jargs-1.0.jar" dest="${build.dir}/jar"/>
+- <unjar src="${lib.dir}/rhino-1.6R7.jar" dest="${build.dir}/jar"/>
++ <unjar src="/usr/share/java/js.jar" dest="${build.dir}/jar"/>
+ <copy todir="${build.dir}/jar">
+ <fileset dir="${build.dir}/classes" includes="**/*.class"/>
+ </copy>
+ <jar destfile="${build.dir}/${jar.name}" basedir="${build.dir}/jar">
+ <manifest>
++ <attribute name="Class-Path" value="/usr/share/java/jargs.jar"/>
+ <attribute name="Main-Class" value="com.yahoo.platform.yui.compressor.Bootstrap"/>
+ </manifest>
+ </jar>
Deleted: tags/yui-compressor/2.4.6-1/debian/rules
===================================================================
--- trunk/yui-compressor/debian/rules 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/rules 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,22 +0,0 @@
-#!/usr/bin/make -f
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/ant.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
-
-DEB_COMPRESS_EXCLUDE := .class
-JAVA_HOME := /usr/lib/jvm/default-java
-
-DEB_JARS := js jargs
-DEB_ANT_BUILD_TARGET := build.jar
-DEb_CLEAN_BUILD_TARGET := clean
-DEB_DH_INSTALLCHANGELOGS_ARGS := doc/CHANGELOG
-
-LIBRARY=yui-compressor
-VERSION=2.4.2
-
-build/yui-compressor::
- cp build/yuicompressor-${VERSION}.jar build/yui-compressor.jar
-
-get-orig-source:
- uscan --force-download
Copied: tags/yui-compressor/2.4.6-1/debian/rules (from rev 13571, trunk/yui-compressor/debian/rules)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/rules (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/rules 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+DEB_COMPRESS_EXCLUDE := .class
+JAVA_HOME := /usr/lib/jvm/default-java
+
+DEB_JARS := js jargs
+DEB_ANT_BUILD_TARGET := build.jar
+DEb_CLEAN_BUILD_TARGET := clean
+DEB_DH_INSTALLCHANGELOGS_ARGS := doc/CHANGELOG
+
+LIBRARY=yui-compressor
+VERSION=2.4.6
+RHINO_VERSION=1.7R2-4
+
+build/yui-compressor::
+ cp build/yuicompressor-${VERSION}.jar build/yui-compressor.jar
+
+get-orig-source:
+ debian/fetch-upstream ${VERSION} ${RHINO_VERSION}
Deleted: tags/yui-compressor/2.4.6-1/debian/watch
===================================================================
--- trunk/yui-compressor/debian/watch 2011-03-16 20:33:24 UTC (rev 13434)
+++ tags/yui-compressor/2.4.6-1/debian/watch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -1,4 +0,0 @@
-version=3
-http://yuilibrary.com/downloads/ \
- yuicompressor/yuicompressor-([\d\.]*).zip debian debian/orig-tar.sh
-
Copied: tags/yui-compressor/2.4.6-1/debian/watch (from rev 13571, trunk/yui-compressor/debian/watch)
===================================================================
--- tags/yui-compressor/2.4.6-1/debian/watch (rev 0)
+++ tags/yui-compressor/2.4.6-1/debian/watch 2011-04-25 10:13:10 UTC (rev 13572)
@@ -0,0 +1,4 @@
+# No watch file
+# Upstream download site http://yuilibrary.com/downloads/
+# doesn't provide a way for scanning.
+
More information about the pkg-java-commits
mailing list