summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4750dd)
raw | patch | inline | side by side (parent: a4750dd)
author | Mark Levedahl <mdl123@verizon.net> | |
Thu, 13 Dec 2007 14:02:26 +0000 (09:02 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 14 Dec 2007 06:51:37 +0000 (01:51 -0500) |
The mapping of Windows vs Cygwin/Posix paths is arbitrary and not knowable
from the Posix side, so logic to determine whether to use relative paths
to locate the git-gui library just does not work on Cygwin. Fix this to
unconditionally use absolute path on Cygwin. (This fixes a regression
from 1.5.4).
Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
from the Posix side, so logic to determine whether to use relative paths
to locate the git-gui library just does not work on Cygwin. Fix this to
unconditionally use absolute path on Cygwin. (This fixes a regression
from 1.5.4).
Signed-off-by: Mark Levedahl <mdl123@verizon.net>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 26ac4b6bb0e974130ae84f4e35e1464f8b08e202..c109eab1378b99943baa40bc5e36f0b526c8201e 100644 (file)
--- a/Makefile
+++ b/Makefile
GITGUI_RELATIVE :=
GITGUI_MACOSXAPP :=
-ifeq ($(exedir),$(gg_libdir))
- GITGUI_RELATIVE := 1
-endif
-
ifeq ($(uname_O),Cygwin)
GITGUI_SCRIPT := `cygpath --windows --absolute "$(GITGUI_SCRIPT)"`
- ifeq ($(GITGUI_RELATIVE),)
- gg_libdir := $(shell cygpath --windows --absolute "$(gg_libdir)")
+ gg_libdir := $(shell cygpath --windows --absolute "$(gg_libdir)")
+else
+ ifeq ($(exedir),$(gg_libdir))
+ GITGUI_RELATIVE := 1
endif
endif
ifeq ($(uname_S),Darwin)