about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-02-02 15:52:03 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-02-02 15:52:03 +0100
commit2636f5127d7f886d8eed7ea0386143b3bddb0424 (patch)
treeb8716cb34b638632c6b30442f500b993d077c95c /GNUmakefile
parent92dd0f7be5b11d319fd319e1a1947505bb2e95fb (diff)
downloadmblaze-2636f5127d7f886d8eed7ea0386143b3bddb0424.tar.gz
mblaze-2636f5127d7f886d8eed7ea0386143b3bddb0424.tar.xz
mblaze-2636f5127d7f886d8eed7ea0386143b3bddb0424.zip
GNUmakefile: release: check ./VERSION is correct before release
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8ce7370..8ff9021 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -68,6 +68,7 @@ install: FRC all
 
 release:
 	VERSION=$$(git describe --tags | sed 's/^v//;s/-[^.]*$$//') && \
+	[ "$$VERSION" = "$$(cat VERSION)" ] && \
 	git archive --prefix=mblaze-$$VERSION/ -o mblaze-$$VERSION.tar.gz HEAD
 
 sign: