aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2011-10-12 22:23:33 -0300
committerGravatar David Bremner <bremner@debian.org>2011-10-28 14:14:43 -0300
commita1ca7e8ebb49ee92ebe8e4abe3db27491d7bbddf (patch)
treef60bb1768da20099e0166c889e7708490f171d67 /Makefile.local
parentd9868bc056db69e3d9a3b119fd284345df60db9f (diff)
build system: target to make a Debian snapshot package.
Currently this builds a native package, but since the source package is throw away, it should not matter too much, except for the extra warnings from lintian. The extra +1 is so that if $(VERSION) is the same as the last released version (for example outside a git repo) then the versions still order correctly.
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile.local b/Makefile.local
index 2c07bd78..ec09f953 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -130,6 +130,17 @@ pre-release:
mkdir -p releases
mv $(TAR_FILE) $(DEB_TAR_FILE) releases
+.PHONY: debian-snapshot
+debian-snapshot: TMPFILE := $(shell mktemp)
+debian-snapshot:
+ make VERSION=$(VERSION) clean
+ cp debian/changelog $(TMPFILE)
+ EDITOR=/bin/true dch -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
+ echo '3.0 (native)' > debian/source/format
+ debuild -us -uc
+ mv -f $(TMPFILE) debian/changelog
+ echo '3.0 (quilt)' > debian/source/format
+
.PHONY: release-message
release-message:
@echo "To: notmuch@notmuchmail.org"