make install needs root for a personal tool, and uninstall leaves man pages behind #91
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PREFIX ?= /usr/local, andinstall-manwrites to$(PREFIX)/share/man/man1. So a plainmake installfails without sudo:The README documents
make installwith no qualification, so the documented path does not work for the ordinary case. This tool is a personal forge — the common install is a single user's own machine, not a system-wide package.I have been working around it with
make install PREFIX=$HOME/.localfor an entire session of development and never filed it, which is its own evidence: a workaround you type often enough stops registering as a bug.A second, separate defect:
uninstallremoves the two binaries and not the man pages it installed.make install && make uninstallleaves$(PREFIX)/share/man/man1/git-collab*.1behind.Wanted:
PREFIXto something a user can write to.$HOME/.localis the obvious choice and matches where~/.local/binalready sits on most PATHs; a system install stays available asmake install PREFIX=/usr/localwith sudo.uninstallmust remove exactly whatinstallcreated, man pages included.Worth checking while in there: whether
install-manfailing should abort the binary install at all. Man pages are a convenience; a user without a writable man directory arguably still wants the binaries.Migrated from git-collab issue
4876fba0bb2cec33b1e14e29b5c1446efd8fc529.Original author: a73x dev@a73x.sh.
Close reason: merged in patch
b7480bbb