commit 1222309b87ee285b7602871ced7f51361727c988
parent f9e4dab0c8316cda06758c1cdcb8e09c18931a52
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Sun, 27 Feb 2022 19:36:12 +0530
Replace PREFIX with DESTDIR
PREFIX is causing issues with ~/.local installations.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/install b/install
@@ -1,9 +1,8 @@
#!/bin/sh
-DESTDIR=
-PREFIX="${DESTDIR}/usr/local"
-BINDIR="${PREFIX}/bin"
-MANDIR="${PREFIX}/share/man"
+DESTDIR="${DESTDIR}/usr/local"
+BINDIR="${DESTDIR}/bin"
+MANDIR="${DESTDIR}/share/man"
mkdir -p "${BINDIR}" "${MANDIR}/man1"
install -m0755 nb "${BINDIR}"