From 0610e6ffb1b8672eea4ba03591f1f0da13669bbc Mon Sep 17 00:00:00 2001
From: Kamil Trzcinski <ayufan@ayufan.eu>
Date: Thu, 22 Oct 2015 10:07:28 +0200
Subject: [PATCH] Add version check to Makefile

---
 Makefile | 9 ++++++++-
 VERSION  | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 57ed70a15..131962a3f 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ DEB_ARCHS ?= amd64 i386 arm armhf
 RPM_PLATFORMS ?= el/6 el/7 ol/6 ol/7
 RPM_ARCHS ?= x86_64 i686 arm armhf
 
-all: deps test lint toolchain build
+all: check deps test lint toolchain build
 
 help:
 	# make all => deps test lint toolchain build
@@ -32,6 +32,13 @@ help:
 	# make packagecloud - send all packages to packagecloud
 	# make packagecloud-yank - remove specific version from packagecloud
 
+check:
+ifeq ($(RELEASE),true)
+	ifneq ($VERSION,$LAST_TAG)
+		$(error Bad version specified in VERSION file)
+	endif
+endif
+
 version: FORCE
 	@echo Current version: $(VERSION)
 	@echo Current iteration: $(ITTERATION)
diff --git a/VERSION b/VERSION
index a918a2aa1..844f6a91a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.6.0
+0.6.3
-- 
GitLab