Commit 2c6c0783225e65e142fac6d0f857c1ec9ac4dc79

Thomas de Grivel 2022-05-13T10:08:34

install in /home/dx/.rtbuf if it exists

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/config.subr b/config.subr
index 08c082f..373cc5e 100644
--- a/config.subr
+++ b/config.subr
@@ -71,7 +71,9 @@ fi
 echo "INSTALL = $INSTALL" >> ${CONFIG_MK}
 
 if test -z "$PREFIX"; then
-    if test -d /usr/local; then
+    if test -d "$HOME/.rtbuf"; then
+        PREFIX="$HOME/.rtbuf"
+    elif test -d /usr/local; then
         PREFIX=/usr/local
     elif test -d /usr; then
         PREFIX=/usr