]> git.donarmstrong.com Git - roundcube.git/commitdiff
Use of yui-compressor to re-minify Javascript files.
authorVincent Bernat <bernat@debian.org>
Sun, 13 Feb 2011 15:36:17 +0000 (15:36 +0000)
committerJérémy Bobbio <lunar@debian.org>
Sat, 18 Jun 2011 19:31:22 +0000 (21:31 +0200)
debian/changelog
debian/control
debian/rules

index 090f833b9dcc0351a239045f52580490d48b5d3f..d26aa6079a8cd784a7e280d475a3033cd642a456 100644 (file)
@@ -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 <bernat@debian.org>  Sun, 13 Feb 2011 15:25:45 +0100
+ -- Vincent Bernat <bernat@debian.org>  Sun, 13 Feb 2011 16:19:33 +0100
 
 roundcube (0.5.1-1) unstable; urgency=low
 
index fbc7162204144ae927555a21de8103c3fd7883bf..d4b6c2f1dbdbd204f3301bc4412c5038dfd39058 100644 (file)
@@ -3,7 +3,7 @@ Section: web
 Priority: extra
 Maintainer: Debian Roundcube Maintainers <pkg-roundcube-maintainers@lists.alioth.debian.org>
 Uploaders: Vincent Bernat <bernat@debian.org>, Romain Beauxis <toots@rastageeks.org>
-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
index 721060c9949958bbc55ed0cd84625bf29c6a197b..195617e7ad54afdc6812d647fd5783ae7e2c08bb 100755 (executable)
@@ -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