aboutsummaryrefslogtreecommitdiff
path: root/Makefile.local
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-12-04 03:47:38 -0500
committerDavid Bremner <david@tethera.net>2019-12-21 08:54:11 +0900
commit7ebb2f5509c175c0efc6682fc7abf89a68f61f7d (patch)
tree035e1bddf2f6a4f316103c676229ffe922f603b3 /Makefile.local
parent757ed001aad27d3c5ee8828174778b71013e4afd (diff)
debian: return an error if debian snapshot build fails
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local18
1 files changed, 10 insertions, 8 deletions
diff --git a/Makefile.local b/Makefile.local
index 7c12612d..586cdf75 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -97,14 +97,16 @@ pre-release:
.PHONY: debian-snapshot
debian-snapshot:
make VERSION=$(VERSION) clean
- TMPFILE=$$(mktemp /tmp/notmuch.XXXXXX); \
- cp debian/changelog $${TMPFILE}; \
- EDITOR=/bin/true dch -b -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
+ RETVAL=0 && \
+ TMPFILE=$$(mktemp /tmp/notmuch.XXXXXX) && \
+ cp debian/changelog $${TMPFILE} && \
+ (EDITOR=/bin/true dch -b -v $(VERSION)+1 \
+ -D UNRELEASED 'test build, not for upload' && \
+ echo '3.0 (native)' > debian/source/format && \
+ debuild -us -uc); RETVAL=$$? \
+ mv -f $${TMPFILE} debian/changelog; \
+ echo '3.0 (quilt)' > debian/source/format; \
+ exit $$RETVAL
.PHONY: release-message
release-message: