]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
change default lib path for build
authorBastian Dehn <hhaalo@arcor.de>
Tue, 29 Sep 2026 17:27:53 +0000 (19:27 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 29 Sep 2026 18:35:04 +0000 (20:35 +0200)
Makefile
src/albentohandy

index 20d35bdc41d0fe70e9f2a31c78b6110c77055afa..536afeedc5797f196340b98765278d6b076f07cd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,9 @@ clean:
 
 $(BUILDDIR)/$(PACKAGE)/$(BINDIR)/albentohandy:
        mkdir --parents $(@D)
-       sed 's/# LIB_PATH/LIB_PATH/' $(SRCDIR)/albentohandy > $(@)
+       sed 's/LIB_PATH:-"\$$scriptpath\/lib"/LIB_PATH:-"\/usr\/lib\/albentohandy"/' \
+               $(SRCDIR)/albentohandy \
+               | sed '/scriptpath/d' > $(@)
        chmod 755 $(@)
        shellcheck $(@)
 
index 2aac94424aa64afb17e8050aa0dfe0b04c73e4dd..4acc835288fbaa05d171f3bb5a589c1a15b1cb48 100755 (executable)
@@ -35,7 +35,6 @@ load_config()
 {
        local scriptpath=
        scriptpath=$(dirname "$(realpath "$0")")
-
        CONFIG_FILE=${CONFIG_FILE:-"$HOME/.albentohandy.conf"}
 
        [ -f "$CONFIG_FILE" ] \
@@ -51,7 +50,6 @@ load_config()
                || errlog "directory $MUSIC_PATH does not exists" \
                || return $?
        MUSIC_PATH=$(realpath "$MUSIC_PATH")
-       # LIB_PATH="/usr/lib/albentohandy"
        LIB_PATH=${LIB_PATH:-"$scriptpath/lib"}
        OUTPUT_PATH=${OUTPUT_PATH:-"work.$$"}
 }