X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/294c70ed4b62663744b1786a5ae5a1adca6c80ea..249ab79fe16c4dff89b2738648764a1b8ca3a22f:/debian/autorules.m4 diff --git a/debian/autorules.m4 b/debian/autorules.m4 index 262335c..63c8e28 100644 --- a/debian/autorules.m4 +++ b/debian/autorules.m4 @@ -71,15 +71,15 @@ pkg-$1: [build] $(MKDIR) debian/$1 $(MKDIR) debian/$1/DEBIAN $(MKDIR) debian/$1/usr/share/doc/$1 - cp debian/copyright \ + $(INSTALL_DATA) debian/copyright \ debian/$1/usr/share/doc/$1/copyright - cp debian/changelog \ + $(INSTALL_DATA) debian/changelog \ debian/$1/usr/share/doc/$1/changelog.Debian gzip -9 debian/$1/usr/share/doc/$1/changelog.Debian @for f in preinst postinst prerm postrm conffiles templates config; do\ if test -e debian/$$f.$1; then\ - echo cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \ - cp debian/$$f.$1 debian/$1/DEBIAN/$$f; \ + echo $(INSTALL_SCRIPT) debian/$$f.$1 debian/$1/DEBIAN/$$f; \ + $(INSTALL_SCRIPT) debian/$$f.$1 debian/$1/DEBIAN/$$f; \ fi;\ done $2 dpkg-gencontrol -isp -p$1 -Pdebian/$1 -Tdebian/substvars.$1