aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.local
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-04-15 18:40:08 -0700
committerGravatar Carl Worth <cworth@cworth.org>2010-04-15 18:40:08 -0700
commit2475afcf0d40d03c1a308a934c9066ad7beb94b3 (patch)
treeda1685f9cc31f97c5de15f39ac47b8d70779cac1 /Makefile.local
parent2bf06e177db923b31f12faefb328b3bfe0651d6d (diff)
make release: Provide a kinder message when VERSION is forgotten.
I'm unlikely to always remember to pass VERSION=X.Y so it's nice for make release to remind me.
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile.local b/Makefile.local
index 82072284..98d69c4d 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -9,7 +9,7 @@
# Between releases, (such as when compiling notmuch from the git
# repository), we let git append identification of the actual commit.
PACKAGE=notmuch
-VERSION:=$(shell if [ -f version ]; then cat version; else git describe --match '[0-9].[0-9]*'; fi)
+VERSION:=$(shell if [ -f version ]; then cat version; else git describe --match '[0-9.]*'; fi)
RELEASE_HOST=notmuchmail.org
RELEASE_DIR=/srv/notmuchmail.org/www/releases
@@ -119,10 +119,14 @@ release-message:
.PHONY: verify-version
verify-version:
- @echo -n "Checking that $(VERSION) is a two-component version..."
- @if echo $(VERSION) | grep -q -v -x '[0-9]*\.[0-9]*'; then \
- (echo "Ouch." && \
- echo "Before releasing the notmuch version should be a two-component value." && false);\
+ @echo -n "Checking that $(VERSION) consists only of digits and periods..."
+ @if echo $(VERSION) | grep -q -v -x '[0-9.]*'; then \
+ (echo "No." && \
+ echo "Remember: You need to use:" && \
+ echo "" && \
+ echo " make VERSION=X.Y release" && \
+ echo "" && \
+ echo "to release notmuch." && false); \
else :; fi
@echo "Good."