Skip to content

Commit

Permalink
INSTALL: Add MANPATH instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
ndim committed Jul 28, 2012
1 parent 64ea8c7 commit 0288f18
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion INSTALL.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@ set the environment variable GIT_EXEC_PATH accordingly:
$ export "GIT_EXEC_PATH=@pkglibexecdir@:$(git --exec-path)"
$ git --exec-path
@pkglibexecdir@:/usr/libexec/git-core
$ git amb --help # should come up with the git-amb(1) man page
$ git amb --version
git-amb (ndims git utilities) 1.22.1-64ea8c7

A similar operation is required to set up the man pages so that both
"man git-amb" and "git amb --help" can display the git-amb(1) man
page:

$ manpath
/usr/local/share/man:/usr/share/man
$ export MANPATH="@mandir@:$(manpath)"
$ manpath
manpath: warning: $MANPATH set, ignoring /etc/man_db.conf
@mandir@:/usr/local/share/man:/usr/share/man
$ git amb --help # should come up with the git-amb(1) man page
3 changes: 2 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ CLEANFILES += INSTALL
EXTRA_DIST += INSTALL.in
INSTALL: $(top_srcdir)/INSTALL.in Makefile
$(SED) \
-e 's,[@]prefix@,$(prefix),g' \
-e 's,[@]mandir@,$(mandir),g' \
-e 's,[@]pkglibexecdir@,$(pkglibexecdir),g' \
-e 's,[@]prefix@,$(prefix),g' \
$(top_srcdir)/INSTALL.in > INSTALL

dist-hook: dist-hook-rm-INSTALL-file
Expand Down

0 comments on commit 0288f18

Please sign in to comment.