summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-07-01 12:13:40 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-07-01 12:13:40 +0200
commit4ad15542bc927c47ad0b56e7ee03d2b711448e39 (patch)
tree0b97c11add8d7db71ef35ecdc2cce1cd7b49d18a /lbu.in
parentc55971dbb9021934816d96383450210235890a23 (diff)
downloadalpine-conf-4ad15542bc927c47ad0b56e7ee03d2b711448e39.zip
lbu: fix import of libalpine.sh for tests
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in11
1 files changed, 3 insertions, 8 deletions
diff --git a/lbu.in b/lbu.in
index ae4220c..7d824a4 100644
--- a/lbu.in
+++ b/lbu.in
@@ -5,15 +5,10 @@
# May be distributed under GPL2 or MIT
VERSION=@VERSION@
-sysconfdir=@sysconfdir@
-if [ ! -f ${libalpine:="./libalpine.sh"} ]; then
- libalpine=/usr/share/lbu/libalpine.sh
- if [ ! -f "$libalpine" ]; then
- libalpine=/lib/libalpine.sh
- fi
-fi
-. $libalpine || exit 1
+PREFIX=@PREFIX@
+: ${LIBDIR=$PREFIX/lib}
+. "$LIBDIR/libalpine.sh"
EXCLUDE_LIST="$sysconfdir"/exclude
INCLUDE_LIST="$sysconfdir"/include