summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 78d39f9)
raw | patch | inline | side by side (parent: 78d39f9)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 Dec 2007 09:35:29 +0000 (01:35 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 10 Dec 2007 09:36:31 +0000 (01:36 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history | |
help.c | patch | blob | history |
diff --git a/Makefile b/Makefile
index 429bc1ddb55f502b5c7ed51515aa7600599b2f15..f20b8c0092282778ecc2d68d2df49d3f006dce91 100644 (file)
--- a/Makefile
+++ b/Makefile
prefix = $(HOME)
bindir = $(prefix)/bin
mandir = $(prefix)/share/man
+infodir = $(prefix)/share/info
gitexecdir = $(bindir)
sharedir = $(prefix)/share
template_dir = $(sharedir)/git-core/templates
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
bindir_SQ = $(subst ','\'',$(bindir))
mandir_SQ = $(subst ','\'',$(mandir))
+infodir_SQ = $(subst ','\'',$(infodir))
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
template_dir_SQ = $(subst ','\'',$(template_dir))
htmldir_SQ = $(subst ','\'',$(htmldir))
$(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS)
help.o: help.c common-cmds.h GIT-CFLAGS
- $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) '-DGIT_MAN_PATH="$(mandir_SQ)"' $<
+ $(QUIET_CC)$(CC) -o $*.o -c $(ALL_CFLAGS) \
+ '-DGIT_MAN_PATH="$(mandir_SQ)"' \
+ '-DGIT_INFO_PATH="$(infodir_SQ)"' $<
git-merge-subtree$X: git-merge-recursive$X
$(QUIET_BUILT_IN)$(RM) $@ && ln git-merge-recursive$X $@
index 9d7ad6f3194086a9b7b313ee5d29634d2f221b28..c96b1670f33a97daef215ee691016a8bfa9555c9 100644 (file)
--- a/help.c
+++ b/help.c
static void show_info_page(const char *git_cmd)
{
const char *page = cmd_to_page(git_cmd);
+ setenv("INFOPATH", GIT_INFO_PATH, 1);
execlp("info", "info", "gitman", page, NULL);
}