mirror of
https://github.com/fscotto/fsnap.git
synced 2026-11-26 03:09:51 +00:00
install copies the binary to $(BINDIR), defaulting to /usr/local/bin. PREFIX, BINDIR and INSTALL are overridable, and DESTDIR is honoured so a packager can stage into a temporary root; it is deliberately left undefaulted rather than set to empty. uninstall removes what install placed, and is idempotent. Both use install(1) rather than cp, so the mode is set explicitly and the target directory is created in the same step. The flags used, -d and -m, are common to GNU and BSD install, which SPEC.md section 19 asks for. Verified: staged install under DESTDIR, PREFIX and BINDIR overrides, uninstall in both plain and staged form, uninstall with nothing to remove, and install from a clean tree rebuilding first. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018KyCHPAxWzqa3vHKdXJkgx
1.8 KiB
1.8 KiB