diff options
Diffstat (limited to 'osmo-release.mk')
-rw-r--r-- | osmo-release.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/osmo-release.mk b/osmo-release.mk index 03eb3cbe..40eb121b 100644 --- a/osmo-release.mk +++ b/osmo-release.mk @@ -2,6 +2,7 @@ ifndef REL REL := patch endif +BUMPVER := $(shell bumpversion) NEW_VER := $(shell bumpversion --list --current-version $(VERSION) $(REL) --allow-dirty | awk -F '=' '{ print $$2 }') LIBVERS := $(shell git grep -n LIBVERSION | grep '=' | grep am | grep -v LDFLAGS) MAKEMOD := $(shell git diff -GLIBVERSION --stat | grep Makefile.am) @@ -9,6 +10,10 @@ ISODATE := $(shell date -I) release: +ifeq ($(BUMPVER),) + @$(error Unable to find 'bumpversion' command.) +endif + ifeq ($(NEW_VER),) @$(error Please fix versioning to match http://semver.org/ spec (current is $(VERSION)) before proceeding.) endif |