From: Ulrich Dangel Date: Wed, 4 Aug 2010 10:14:13 +0000 (+0200) Subject: Check version of grml-live against changelog before building X-Git-Tag: v0.12.0~42 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=b6a2954d75227fce01af16eef1e38b2d2b4b732d Check version of grml-live against changelog before building --- diff --git a/debian/rules b/debian/rules index 19b0b99..277a911 100755 --- a/debian/rules +++ b/debian/rules @@ -10,11 +10,14 @@ #export DH_VERBOSE=1 b=$(CURDIR)/debian/build +VERSION:=$(shell dpkg-parsechangelog | awk '/Version: / { print $$2 }') build: build-stamp build-stamp: dh_testdir + grep -q "GRML_LIVE_VERSION=.${VERSION}" grml-live || \ + (echo "Wrong version in grml-live" && exit 2) cd docs && $(MAKE) && cd ../ touch $@