aboutsummaryrefslogtreecommitdiffhomepage
path: root/distribute
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-20 16:17:18 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-03-20 16:17:18 +0100
commit0e7e76377990e03f645bbf5c26529968b3a99ab9 (patch)
treee443afe4daa86be5489ce9c0358e34dc768f8c72 /distribute
parentbfeac5ca8d9d5cf127bd6d52404266da6e04e952 (diff)
downloadsciteco-0e7e76377990e03f645bbf5c26529968b3a99ab9.tar.gz
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
Diffstat (limited to 'distribute')
-rwxr-xr-xdistribute7
1 files changed, 7 insertions, 0 deletions
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