Re: [PATCH] build: add "set -e" to version script generation
[notmuch-archives.git] / 47 / 5bf1778de776edd1cbdc7a7324d45694b957c6
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 84F76429E28\r
6         for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 05:04:02 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id sijoiaucE1yh for <notmuch@notmuchmail.org>;\r
16         Mon,  4 Jul 2011 05:04:01 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 78AF7429E2B\r
21         for <notmuch@notmuchmail.org>; Mon,  4 Jul 2011 05:04:00 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167177149.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.177.149]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p64C3vid027983\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Mon, 4 Jul 2011 09:03:57 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1Qdhsa-0008Mv-RT; Mon, 04 Jul 2011 09:03:56 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 6/6] build-system: guard parts irrevokable parts of release\r
34         target with REALLY_UPLOAD\r
35 Date: Mon,  4 Jul 2011 09:03:41 -0300\r
36 Message-Id: <1309781021-32062-7-git-send-email-david@tethera.net>\r
37 X-Mailer: git-send-email 1.7.5.4\r
38 In-Reply-To: <1309781021-32062-1-git-send-email-david@tethera.net>\r
39 References: <1309781021-32062-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Mon, 04 Jul 2011 12:04:02 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 This supports both testing and use by non-upload privileged\r
58 users. Along with previous commits in the series, this lets one do a\r
59 dry run of the release process and created a tarball, signature file,\r
60 and release announcement to inspect before uploading.\r
61 ---\r
62  Makefile.local |    8 +++++---\r
63  1 files changed, 5 insertions(+), 3 deletions(-)\r
64 \r
65 diff --git a/Makefile.local b/Makefile.local\r
66 index a291195..6b2a3a7 100644\r
67 --- a/Makefile.local\r
68 +++ b/Makefile.local\r
69 @@ -97,12 +97,14 @@ release: verify-source-tree-and-version\r
70         $(MAKE) VERSION=$(VERSION) test\r
71         git tag -v $(VERSION) || git tag -s -m "$(PACKAGE) $(VERSION) release" $(VERSION)\r
72         $(MAKE) VERSION=$(VERSION) $(GPG_FILE)\r
73 -       scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR)\r
74 -       ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-[0-9]* && ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(PACKAGE)-$(VERSION)"\r
75         mkdir -p releases\r
76         mv $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) releases\r
77 -       git push origin $(VERSION)\r
78         $(MAKE) VERSION=$(VERSION) release-message > $(PACKAGE)-$(VERSION).announce\r
79 +ifeq ($(REALLY_UPLOAD),yes)\r
80 +       git push origin $(VERSION)\r
81 +       cd releases && scp $(TAR_FILE) $(SHA1_FILE) $(GPG_FILE) $(RELEASE_HOST):$(RELEASE_DIR)\r
82 +       ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-[0-9]* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(PACKAGE)-$(VERSION)"\r
83 +endif\r
84         @echo "Please send a release announcement using $(PACKAGE)-$(VERSION).announce as a template."\r
85  \r
86  .PHONY: release-message\r
87 -- \r
88 1.7.5.4\r
89 \r