[PATCH 2/2] build system: target to make a Debian snapshot package.
authordavid <david@tethera.net>
Thu, 13 Oct 2011 01:23:33 +0000 (22:23 +2100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:40 +0000 (09:39 -0800)
e8/296c6f6e81dcb509050701ae1321c7401ce596 [new file with mode: 0644]

diff --git a/e8/296c6f6e81dcb509050701ae1321c7401ce596 b/e8/296c6f6e81dcb509050701ae1321c7401ce596
new file mode 100644 (file)
index 0000000..c98abc9
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <bremner@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6A358429E29\r
+       for <notmuch@notmuchmail.org>; Wed, 12 Oct 2011 18:23:54 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id DM+YFikz8bh3 for <notmuch@notmuchmail.org>;\r
+       Wed, 12 Oct 2011 18:23:53 -0700 (PDT)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 522F1429E28\r
+       for <notmuch@notmuchmail.org>; Wed, 12 Oct 2011 18:23:52 -0700 (PDT)\r
+Received: from zancas.localnet\r
+       (fctnnbsc36w-156034064058.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [156.34.64.58]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p9D1Nmuv007499\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Wed, 12 Oct 2011 22:23:49 -0300\r
+Received: from bremner by zancas.localnet with local (Exim 4.76)\r
+       (envelope-from <bremner@tethera.net>)\r
+       id 1REA1U-00041A-D7; Wed, 12 Oct 2011 22:23:48 -0300\r
+From: david@tethera.net\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] build system: target to make a Debian snapshot package.\r
+Date: Wed, 12 Oct 2011 22:23:33 -0300\r
+Message-Id: <1318469013-15395-3-git-send-email-david@tethera.net>\r
+X-Mailer: git-send-email 1.7.6.3\r
+In-Reply-To: <1318469013-15395-1-git-send-email-david@tethera.net>\r
+References: <1318469013-15395-1-git-send-email-david@tethera.net>\r
+Cc: David Bremner <bremner@debian.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 13 Oct 2011 01:23:54 -0000\r
+\r
+From: David Bremner <bremner@debian.org>\r
+\r
+Currently this builds a native package, but since the source package\r
+is throw away, it should not matter too much, except for the extra\r
+warnings from lintian.\r
+\r
+The extra +1 is so that if $(VERSION) is the same as the last released\r
+version (for example outside a git repo) then the versions still order\r
+correctly.\r
+---\r
+ Makefile.local |   11 +++++++++++\r
+ 1 files changed, 11 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/Makefile.local b/Makefile.local\r
+index 2c07bd7..ec09f95 100644\r
+--- a/Makefile.local\r
++++ b/Makefile.local\r
+@@ -130,6 +130,17 @@ pre-release:\r
+       mkdir -p releases\r
+       mv $(TAR_FILE) $(DEB_TAR_FILE) releases\r
\r
++.PHONY: debian-snapshot\r
++debian-snapshot: TMPFILE := $(shell mktemp)\r
++debian-snapshot:\r
++      make VERSION=$(VERSION) clean\r
++      cp debian/changelog $(TMPFILE)\r
++      EDITOR=/bin/true dch -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'\r
++      echo '3.0 (native)' > debian/source/format\r
++      debuild -us -uc\r
++      mv -f $(TMPFILE) debian/changelog\r
++      echo '3.0 (quilt)' > debian/source/format\r
++\r
+ .PHONY: release-message\r
+ release-message:\r
+       @echo "To: notmuch@notmuchmail.org"\r
+-- \r
+1.7.6.3\r
+\r