debian: fix make dist for packaging.

bzip2 tarballs are now used, so update the deb.upstream dependencies
to include dist-bzip2 instead of plain old dist, and use the correct
tar extract options to handle that format.
This commit is contained in:
Gwenole Beauchesne 2012-10-17 15:49:23 +02:00
parent 1dea0ef974
commit a39a709d2d

View file

@ -15,11 +15,11 @@ DEB_BUILDDIR = debian.build
deb:
dpkg-buildpackage -rfakeroot -uc -us
deb.upstream: dist
deb.upstream: dist-bzip2
-mkdir -p $(DEB_BUILDDIR)
cd $(DEB_BUILDDIR) && \
rm -rf $(PACKAGE)-$(VERSION) && \
tar zxvf ../$(PACKAGE)-$(VERSION).tar.gz && \
tar jxvf ../$(PACKAGE)-$(VERSION).tar.bz2 && \
cd $(PACKAGE)-$(VERSION) && \
$(LN_S) debian.upstream debian && \
$(MAKE) deb -f Makefile.am