git-gui: Locate the library directory early during startup
commitfc703c209d415fe20ad5551465b5b68b8ab8b046
authorShawn O. Pearce <spearce@spearce.org>
Sun, 2 Sep 2007 01:58:29 +0000 (1 21:58 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 2 Sep 2007 01:58:29 +0000 (1 21:58 -0400)
treefac5252eeb50c936f4ca26f82aaca25bf5420fe8
parentc80d25dbce759a8483ffc1f085fdf4cd63cf9f05
git-gui: Locate the library directory early during startup

To support a localized version of git-gui we need to locate the
library directory early so we can initialize Tcl's msgcat package
to load translated messages from.  This needs to occur before we
declare our git-version proc so that errors related to locating
git or assessing its version can be reported to the end-user in
their preferred language.  However we have to keep the library
loading until after git-version has been declared, otherwise we
will fail to start git-gui if we are using a fake tclIndex that
was generated by our Makefile.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh