From: Vincent Bernat Date: Sun, 13 Feb 2011 15:36:17 +0000 (+0000) Subject: Use of yui-compressor to re-minify Javascript files. X-Git-Url: https://git.donarmstrong.com/?p=roundcube.git;a=commitdiff_plain;h=186fca2e47a1c76d29de43208a43585b5a27879f Use of yui-compressor to re-minify Javascript files. --- diff --git a/debian/changelog b/debian/changelog index 090f833..d26aa60 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ roundcube (0.5.1-2) unstable; urgency=low * Add plugins. Closes: #550454. * Update debian/copyright. + * Use of yui-compressor to re-minify Javascript files. - -- Vincent Bernat Sun, 13 Feb 2011 15:25:45 +0100 + -- Vincent Bernat Sun, 13 Feb 2011 16:19:33 +0100 roundcube (0.5.1-1) unstable; urgency=low diff --git a/debian/control b/debian/control index fbc7162..d4b6c2f 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: web Priority: extra Maintainer: Debian Roundcube Maintainers Uploaders: Vincent Bernat , Romain Beauxis -Build-Depends: cdbs, debhelper (>= 5), dh-buildinfo, po-debconf +Build-Depends: cdbs, debhelper (>= 5), dh-buildinfo, po-debconf, yui-compressor Homepage: http://www.roundcube.net/ Standards-Version: 3.9.1 Vcs-Svn: svn://svn.debian.org/svn/pkg-roundcube/trunk diff --git a/debian/rules b/debian/rules index 721060c..195617e 100755 --- a/debian/rules +++ b/debian/rules @@ -28,7 +28,11 @@ binary-install/roundcube-core:: # Remove useless file rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin find $(CURDIR)/debian/roundcube-core -name '._*' -print0 | xargs -r0 rm - find $(CURDIR)/debian/roundcube-core -name '*.js.src' -print0 | xargs -r0 rm + # Convert .js.src back to js + for js in $$(find $(CURDIR)/debian/roundcube-core -name '*.js.src' -print); do \ + yui-compressor --type js "$$js" -o "$${js%.*}" ; \ + rm "$$js" ; \ + done # Remove files shipped in tinymce package rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/tiny_mce dh_link -proundcube-core usr/share/tinymce/www usr/share/roundcube/program/js/tiny_mce