mirror of
https://github.com/arzzen/git-quick-stats.git
synced 2026-09-10 07:36:19 -04:00
Improve man install / uninstall
- Create man directory prior to installing the page - Do not force root ownership of the man page - Remove man page when uninstalling
This commit is contained in:
parent
190ae631e5
commit
7a9e9c7f85
4
Makefile
4
Makefile
|
|
@ -23,6 +23,7 @@ install:
|
|||
|
||||
uninstall:
|
||||
rm -f $(PREFIX)/bin/git-quick-stats
|
||||
rm -f $(PREFIX)/share/man/man1/git-quick-stats.1
|
||||
git config --global --unset alias.quick-stats
|
||||
@$(TASK_DONE)
|
||||
|
||||
|
|
@ -33,7 +34,8 @@ reinstall:
|
|||
@$(TASK_DONE)
|
||||
|
||||
man:
|
||||
install -g 0 -o 0 -m 0644 git-quick-stats.1 /usr/share/man/man1/
|
||||
install -d -m 0755 $(PREFIX)/share/man/man1/
|
||||
install -m 0644 git-quick-stats.1 $(PREFIX)/share/man/man1/
|
||||
|
||||
test:
|
||||
tests/commands_test.sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue