summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0fc1efa)
raw | patch | inline | side by side (parent: 0fc1efa)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 15 Jun 2008 12:26:40 +0000 (14:26 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 15 Jun 2008 12:26:40 +0000 (14:26 +0200) |
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.
work.
Also, the regex used to determine the version from the "dpkg -s" output has
been hardened by checking for word boundaries.
debian/rules | patch | blob | history |
diff --git a/debian/rules b/debian/rules
index 9e196a7bad96863492d7e10cd1e727c37a28aa2f..d642464cef1dab1303a48ea254c2f81191b4816f 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
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,.*\<tcl\([0-9.]*\)-dev\>.*,\1,')
#let's help configure to figure out our host/build system