From 0e7e76377990e03f645bbf5c26529968b3a99ab9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 20 Mar 2013 16:17:18 +0100 Subject: use a Debian version and branch by default * distributed binary packages are standard debian packages * ./distribute might fix up the package version and branch for Ubuntu/PPA --- debian/changelog | 2 +- distribute | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 57e7395..528445e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -sciteco (0.1-1ppa1~oneiric1) oneiric; urgency=low +sciteco (0.1-1) unstable; urgency=low * initial debianization * single package with architecture independent files diff --git a/distribute b/distribute index fe2c6a5..2169bda 100755 --- a/distribute +++ b/distribute @@ -37,6 +37,8 @@ sciteco-$(SCITECO_VERSION)-bundle.tar.gz : $(SCITECO_SRC) $(SCINTILLA_SRC) $(SCI tar czf $@ sciteco-$(SCITECO_VERSION)/ rm -rf sciteco-$(SCITECO_VERSION)/ +# $(UBUNTU) sets the Ubuntu distribution and fixes the package's +# version debian-prepare: debian-temp/ debian-temp/ : bundle mkdir debian-temp/ @@ -46,6 +48,11 @@ debian-temp/ : bundle tar xzf sciteco_$(SCITECO_VERSION).orig.tar.gz; \ cp -r ../debian sciteco-$(SCITECO_VERSION)/; \ ) +ifneq ($(UBUNTU),) + sciteco -e "@EB|debian-temp/sciteco-$(SCITECO_VERSION)/debian/changelog| \ + <@FS/ unstable;/ $(UBUNTU);/; -@S/)/R @I/ppa1~$(UBUNTU)1/ L> \ + @EW||" +endif debian-source : debian-temp/source-stamp debian-temp/source-stamp : debian-prepare -- cgit v1.2.3