From a3b3ae35d4f175e6444533c96933b5868e499b09 Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 21 Jul 2014 16:41:38 -0400 Subject: 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 Signed-off-by: Pat Thoyts --- macosx/AppMain.tcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'macosx') diff --git a/macosx/AppMain.tcl b/macosx/AppMain.tcl index 738bdd03ed..b6c6dc3500 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} { -- cgit v1.2.3