Skip to content

Commit ced9a0b

Browse files
committed
Update mandb after installing the man page
When manually installing the manpage, also update the mandb. Signed-off-by: Eric Keller <[email protected]>
1 parent 235fed3 commit ced9a0b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

INSTALL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ So, installation might look something like the following:
118118

119119
```
120120
cp -a git-filter-repo $(git --exec-path)
121-
cp -a git-filter-repo.1 $(git --man-path)/man1
121+
cp -a git-filter-repo.1 $(git --man-path)/man1 && mandb
122122
cp -a git-filter-repo.html $(git --html-path)
123123
ln -s $(git --exec-path)/git-filter-repo \
124124
$(python -c "import site; print(site.getsitepackages()[-1])")/git_filter_repo.py

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ install: snag_docs #fixup_locale
3838
ln -sf "$(bindir)/git-filter-repo" "$(pythondir)/git_filter_repo.py"
3939
cp -a Documentation/man1/git-filter-repo.1 "$(mandir)/man1/git-filter-repo.1"
4040
cp -a Documentation/html/git-filter-repo.html "$(htmldir)/git-filter-repo.html"
41+
if which mandb > /dev/null; then mandb; fi
4142

4243

4344
#

0 commit comments

Comments
 (0)