gitk: add check for required tcl version >= 8.4
PATCH 1/1 gitk: add check for required tcl version >= 8.4
From: Steffen Prohaska <[email protected]>
Date: Fri, 28 Sep 2007 22:57:22 +0200
gitk requires tcl version >= 8.4 to work flawlessly. So let's check the tcl version and quit if it's too low.
---
* I do not have a ready access to older tcl/tk myself, so I cannot judge if this is sensible or not. Just forwarding in case you missed it.
gitk | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
gitk +5 -0
@@ -7,6 +7,11 @@ exec wish "$0" -- "$@" # and distributed under the terms of the GNU General Public Licence, # either version 2, or (at your option) any later version. +if {[info tclversion] < 8.4} { + puts stderr "Sorry, gitk requires tcl version >= 8.4." + exit 1 +} + proc gitdir {} { global env if {[info exists env(GIT_DIR)]} {
Signature · 1 line
1.5.3.2.111.g5166
Quoted 6 lines · Junio C Hamano
From: Steffen Prohaska <[email protected]>
Date: Fri, 28 Sep 2007 22:57:22 +0200gitk requires tcl version >= 8.4 to work flawlessly. So let's check the tcl version and quit if it's too low.
Quoted 6 lines
Signed-off-by Steffen Prohaska <[email protected]>---
* I do not have a ready access to older tcl/tk myself, so I cannot judge if this is sensible or not. Just forwarding in case you missed it.
Thanks for the patch. I have put in something similar using the package require command, and using show_error to display the error in a window.
Paul.