From ca512bf87c8372671ffd5cdf8262393746cd2535 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 22:02:37 +0000 Subject: [PATCH] dpkg: Add support for debian.tar.gz archives git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7796 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7ea1648d2..377516aea 100644 --- a/Makefile +++ b/Makefile @@ -483,11 +483,15 @@ debian/changelog: debian/changelog.in sed 's/%{scst_version}/$(VERSION)-$(DEBIAN_REVISION)/' \ debian/changelog +../scst_$(VERSION).orig.tar.gz: debian/changelog Makefile + $(call make-scst-dist,z,gz,$(VERSION),cat) && \ + mv "scst-$(VERSION).tar.gz" "$@" + ../scst_$(VERSION).orig.tar.xz: debian/changelog Makefile $(call make-scst-dist,J,xz,$(VERSION),cat) && \ mv "scst-$(VERSION).tar.xz" "$@" -dpkg: ../scst_$(VERSION).orig.tar.xz +dpkg: ../scst_$(VERSION).orig.tar.gz @if [ -z "$$DEBEMAIL" ]; then \ echo "Error: \$$DEBEMAIL has not been set"; \ false; \ @@ -524,7 +528,7 @@ dpkg: ../scst_$(VERSION).orig.tar.xz debuild "$${buildopts[@]}" --lintian-opts --profile debian; \ fi && \ mkdir -p dpkg && \ - for f in "$${output_files[@]}" ../scst_$(VERSION).orig.tar.xz; do\ + for f in "$${output_files[@]}" ../scst_$(VERSION).orig.tar.[gx]z; do\ mv $$f dpkg || true; \ done && \ echo "Output files:" && \