]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - rules
Compress changelog for tinyos-source to remove lintian warning.
[tinyos-2.x.git] / rules
diff --git a/rules b/rules
index 01eea5f8d68ebfc934c6332b4e33be53b50a4dbb..61bd139bb22c544d3b29c2f7a12fa696efb409c3 100755 (executable)
--- a/rules
+++ b/rules
@@ -34,7 +34,7 @@ dtmp := debian/tmp
 # For now, the solution is quite hackish: copy the source directory to the
 # build directory before running configure.
 tempdir := $(shell tempfile $(PACKAGE))
-version := $(shell head -1 debian/changelog | sed -e s'|^.*(\([^-)]*\).*$$|\1|')
+version := $(shell head -1 debian/changelog | sed -e s'|^.*(\(.*\)-.*).*$$|\1|')
 
 configure-stamp: patch-stamp
        $(checkdir)
@@ -110,10 +110,14 @@ binary-arch: checkroot build install
        $(install_file) debian/$(srcpkg).lintian-overrides \
                $(dtmp)/$(srcpkg)/usr/share/lintian/overrides/$(srcpkg)
        $(install_dir) $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/
+       $(install_file) debian/changelog \
+               $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/changelog.Debian
        $(install_file) debian/copyright \
                $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/
        $(install_file) tools/README debian/README.Debian \
                $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg)/
+       find $(dtmp)/$(srcpkg)/usr/share/doc/$(srcpkg) -type f \
+               ! -name copyright | xargs gzip -9
        dpkg-gencontrol -isp -P$(dtmp)/$(srcpkg) -p$(srcpkg)
        chown -R root:root $(dtmp)/$(srcpkg)
        chmod -R go=rX  $(dtmp)/$(srcpkg)
@@ -140,6 +144,9 @@ binary-arch: checkroot build install
        : # Build tinyos-msp430 dummy package
        rm -rf $(dtmp)/$(msppkg)
        $(install_dir) $(dtmp)/$(msppkg)/DEBIAN
+       $(install_dir) $(dtmp)/$(msppkg)/usr/share/lintian/overrides
+       $(install_file) debian/$(msppkg).lintian-overrides \
+               $(dtmp)/$(msppkg)/usr/share/lintian/overrides/$(msppkg)
        $(install_dir) $(dtmp)/$(msppkg)/usr/share/doc/$(msppkg)/
        $(install_file) debian/copyright \
                $(dtmp)/$(msppkg)/usr/share/doc/$(msppkg)/
@@ -153,6 +160,9 @@ binary-arch: checkroot build install
        : # Build tinyos-avr dummy package
        rm -rf $(dtmp)/$(avrpkg)
        $(install_dir) $(dtmp)/$(avrpkg)/DEBIAN
+       $(install_dir) $(dtmp)/$(avrpkg)/usr/share/lintian/overrides
+       $(install_file) debian/$(avrpkg).lintian-overrides \
+               $(dtmp)/$(avrpkg)/usr/share/lintian/overrides/$(avrpkg)
        $(install_dir) $(dtmp)/$(avrpkg)/usr/share/doc/$(avrpkg)/
        $(install_file) debian/copyright \
                $(dtmp)/$(avrpkg)/usr/share/doc/$(avrpkg)/