author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 17 May 2007 22:01:50 +0000 (18:01 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 17 May 2007 22:10:26 +0000 (18:10 -0400) | ||
commit | b9e7efb8b5f7d424466dd1ce61fd20658f60543f | |
tree | ba359fd104fe245a67d0e194c985ed49cd5ec0e5 | tree | snapshot |
parent | d6da71a9d16b8cf27f9d8f90692d3625c849cbc8 | commit | diff |
git-gui: Gracefully handle bad TCL_PATH at compile time
Petr Baudis pointed out the main git.git repository's Makefile dies
now if git-gui 0.7.0-rc1 or later is being used and TCL_PATH was not
set to a working tclsh program path. This breaks people who may have
a working build configuration today and suddenly upgrade to the latest
git release.
The tclIndex is required for git-gui to load its associated lib files,
but using the Tcl auto_load procedure to source only the files we need
is a performance optimization. We can emulate the auto_load by just
source'ing every file in that directory, assuming we source class.tcl
first to initialize our crude class system.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Petr Baudis pointed out the main git.git repository's Makefile dies
now if git-gui 0.7.0-rc1 or later is being used and TCL_PATH was not
set to a working tclsh program path. This breaks people who may have
a working build configuration today and suddenly upgrade to the latest
git release.
The tclIndex is required for git-gui to load its associated lib files,
but using the Tcl auto_load procedure to source only the files we need
is a performance optimization. We can emulate the auto_load by just
source'ing every file in that directory, assuming we source class.tcl
first to initialize our crude class system.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Makefile | diff | blob | history | |
git-gui.sh | diff | blob | history |