Staging
v0.5.0
https://github.com/git/git
Revision ea75ee3598ab6f8d0828f8cc6ec3d4a5f8d66813 authored by Shawn O. Pearce on 27 May 2007, 04:03:37 UTC, committed by Shawn O. Pearce on 27 May 2007, 04:03:37 UTC
Johannes Sixt asked me to try to avoid embedding the runtime location
of git-gui's library directory in the executable script.  Not embedding
it helps the MinGW to be relocatable to another directory should a user
wish to install the programs in a directory other than the location the
packager wanted them to be installed into.

Most of this is a hack.  We try to determine if the path of our master
git-gui script will be able to locate the lib by ../share/git-gui/lib.
This should be true if $(gitexecdir) and $(libdir) have the same prefix.
If they do then we defer the assignment of $(libdir) until runtime, and
we get it from $argv0 rather than embedding it into the script itself.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 3d5793b
History
Tip revision: ea75ee3598ab6f8d0828f8cc6ec3d4a5f8d66813 authored by Shawn O. Pearce on 27 May 2007, 04:03:37 UTC
git-gui: Guess our share/git-gui/lib path at runtime if possible
Tip revision: ea75ee3
File Mode Size
lib
.gitignore -rw-r--r-- 62 bytes
GIT-VERSION-GEN -rwxr-xr-x 1.8 KB
Makefile -rw-r--r-- 3.5 KB
git-gui.sh -rwxr-xr-x 55.8 KB

back to top