diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 19:34:13 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-04-24 19:34:13 +0100 |
commit | 79d47d47ee8ed6307a1a52da06d0b8aaf926fc43 (patch) | |
tree | c69728d20581294fc9892013b9c4f4012a301764 | |
parent | 60aeef6837610c672cebf247ec748538faab7bf1 (diff) |
release.mak: add dist hook to check that meson version is in sync
-rw-r--r-- | release.mak | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release.mak b/release.mak index c84c2f1..78572e9 100644 --- a/release.mak +++ b/release.mak @@ -35,3 +35,11 @@ distcheck-hook: find $(distdir) -name \*-enumtypes.[ch] | grep -v win32 && \ find $(distdir) -name \*-marshal.[ch] && \ false ) + +dist-hook: + @if test -f meson.build && ! $(GREP) -e "version.*'$(VERSION)'" meson.build >/dev/null ; then \ + echo "*******************************************************"; \ + echo "* meson.build needs to be updated for version $(VERSION)"; \ + echo "*******************************************************"; \ + false; \ + fi |