+ # Some files are executable while not being scripts or binary...
+ find $(CURDIR)/debian/roundcube-core/usr/share/roundcube -type f -print0 | xargs -r0 chmod -x
+ # Remove useless file
+ rm -rf $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin
+ find $(CURDIR)/debian/roundcube-core -name '._*' -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
+ # Remove jquery as well
+ rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program/js/jquery.min.js
+ dh_link -proundcube-core usr/share/javascript/jquery/jquery.min.js usr/share/roundcube/program/js/jquery.min.js
+ # Remove GnuPG PEAR module
+ rm -rf $(CURDIR)/debian/roundcube-plugins/usr/share/roundcube/plugins/enigma/lib/Crypt