summaryrefslogtreecommitdiff
path: root/macosx
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2014-07-21 20:41:38 (GMT)
committerPat Thoyts <patthoyts@users.sourceforge.net>2014-08-10 11:48:28 (GMT)
commita3b3ae35d4f175e6444533c96933b5868e499b09 (patch)
tree6366fd9b63ffb53b29b0d99d2927c2ac75acdf84 /macosx
parent8871820169e7d1ff58717d20bfdc3a753eaa6570 (diff)
downloadgit-a3b3ae35d4f175e6444533c96933b5868e499b09.zip
git-a3b3ae35d4f175e6444533c96933b5868e499b09.tar.gz
git-a3b3ae35d4f175e6444533c96933b5868e499b09.tar.bz2
git-gui: Make git-gui lib dir configurable at runime
Introduce the GIT_GUI_LIB_DIR environment variable, to tell git-gui where to look for TCL libs. This allows a git-gui which has been built with a prefix of /foo to be run out of directory /bar. This is the equivalent of GIT_EXEC_PATH or GITPERLLIB but for git-gui's TCL libraries. Signed-off-by: David Turner <dturner@twitter.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'macosx')
-rw-r--r--macosx/AppMain.tcl7
1 files changed, 6 insertions, 1 deletions
diff --git a/macosx/AppMain.tcl b/macosx/AppMain.tcl
index 738bdd0..b6c6dc3 100644
--- a/macosx/AppMain.tcl
+++ b/macosx/AppMain.tcl
@@ -1,5 +1,10 @@
set gitexecdir {@@gitexecdir@@}
-set gitguilib {@@GITGUI_LIBDIR@@}
+if { [info exists ::env(GIT_GUI_LIB_DIR) ] } {
+ set gitguilib $::env(GIT_GUI_LIB_DIR)
+} else {
+ set gitguilib {@@GITGUI_LIBDIR@@}
+}
+
set env(PATH) "$gitexecdir:$env(PATH)"
if {[string first -psn [lindex $argv 0]] == 0} {