Check version of grml-live against changelog before building
authorUlrich Dangel <uli@spamt.net>
Wed, 4 Aug 2010 10:14:13 +0000 (12:14 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 7 Sep 2010 23:46:55 +0000 (01:46 +0200)
debian/rules

index 19b0b99..277a911 100755 (executable)
 #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 $@