From 1fbcb23b1219cfd9dd9bbcca8e4c0573ef0a1be4 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 20 Mar 2013 21:14:44 +0100 Subject: ./distribute: allow not to upload original sources (UPLOAD_SRC=no) * useful when uploading into PPA for different series --- distribute | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/distribute b/distribute index 94da595..4b2ccff 100755 --- a/distribute +++ b/distribute @@ -54,23 +54,31 @@ ifneq ($(UBUNTU),) @EW||" endif -ifeq ($(SIGN),) +SIGN ?= no +ifeq ($(SIGN),yes) +DEBUILD_FLAGS := +else DEBUILD_FLAGS := -us -uc +endif + +UPLOAD_SRC ?= yes +ifeq ($(UPLOAD_SRC),yes) +DEBUILD_FLAGS += -sa else -DEBUILD_FLAGS := +DEBUILD_FLAGS += -sd endif debian-source : debian-temp/source-stamp debian-temp/source-stamp : debian-prepare (cd debian-temp/sciteco-$(SCITECO_VERSION)/; \ - debuild -S -sa $(DEBUILD_FLAGS); \ + debuild -S $(DEBUILD_FLAGS); \ ) touch $@ debian-binary : debian-temp/binary-stamp debian-temp/binary-stamp : debian-prepare (cd debian-temp/sciteco-$(SCITECO_VERSION)/; \ - debuild -b -sa $(DEBUILD_FLAGS); \ + debuild -b $(DEBUILD_FLAGS); \ ) touch $@ -- cgit v1.2.3