diff --git a/debian/rules b/debian/rules index a86fc6fd6..122fddaed 100755 --- a/debian/rules +++ b/debian/rules @@ -89,9 +89,8 @@ debian/control-real: debian/bin/gencontrol.py $(CONTROL_FILES) CheckConfs_DIR := $(CURDIR)/debian/build/check CheckConfs_srcfiles := $(filter-out debian, $(wildcard *)) -# TODO : need to grab those directly from the changelog or whatever. -CheckConfs_SOURCE_VERSION := 2.6.15-2 -CheckConfs_REVISIONS := 1 2 +CheckConfs_SOURCE_VERSION := ${shell a=`head -n 1 debian/changelog`; a=$${a%%\)*}; a=$${a\#\#*\(}; echo $$a} +CheckConfs_REVISIONS := ${shell a=$(CheckConfs_SOURCE_VERSION); a=$${a\#\#*-}; b=1; while [ $$b -lt $$a ]; do echo -n "$$b "; b=$$(($$b+1)); done; echo $$b} $(CheckConfs_DIR) source-configs: rm -rf '$(CheckConfs_DIR)'