#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_INSTALL_CHANGELOGS_ALL=CHANGELOG
cp -r $(CURDIR)/debian/sql/* $(CURDIR)/debian/roundcube-core/usr/share/dbconfig-common/data/roundcube/upgrade/.
# Some files are executable while not being scripts or binary...
- find $(CURDIR)/debian/roundcube-core/usr/share/roundcube/program -type f -print0 | xargs -r0 chmod -x
+ find $(CURDIR)/debian/roundcube-core/usr/share/roundcube -type f -print0 | xargs -r0 chmod -x
# Remove useless file
rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/*.sh
+ rm $(CURDIR)/debian/roundcube-core/usr/share/roundcube/bin/decrypt.php
find $(CURDIR)/debian/roundcube-core -name '._*' -print0 | xargs -r0 rm
find $(CURDIR)/debian/roundcube-core -name '*.js.src' -print0 | xargs -r0 rm
# Remove files shipped in tinymce package