From: Sebastian Harl Date: Sun, 15 Jun 2008 12:26:40 +0000 (+0200) Subject: debian/rules: Use tcl-dev instead of tcl to determine the TCL version. X-Git-Tag: experimental/1.3.0-1~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2270ab20ccb1ebb5c8da912c73e988cea0c65be3;p=pkg-rrdtool.git debian/rules: Use tcl-dev instead of tcl to determine the TCL version. This way, we don't depend on tcl-dev having a dependency on tcl for this to work. Also, the regex used to determine the version from the "dpkg -s" output has been hardened by checking for word boundaries. --- diff --git a/debian/rules b/debian/rules index 9e196a7..d642464 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,8 @@ PY_VERS := $(shell set -e; \ done) #tcl version we're building for -TCL_VERS := $(shell dpkg -s tcl | grep ^Depends | sed 's,.*tcl\([0-9.]*\).*,\1,') +TCL_VERS := $(shell dpkg -s tcl-dev | grep '^Depends' \ + | sed 's,.*\.*,\1,') #let's help configure to figure out our host/build system