summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/.gitignore1
-rw-r--r--src/lib/Makefile2
-rw-r--r--src/lib/conf.sh.in (renamed from src/lib/conf.sh)12
3 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/.gitignore b/src/lib/.gitignore
index 9a0c402..e769566 100644
--- a/src/lib/.gitignore
+++ b/src/lib/.gitignore
@@ -1,3 +1,4 @@
common.sh
common.sh.in
common.sh.top
+conf.sh
diff --git a/src/lib/Makefile b/src/lib/Makefile
index 5226dda..97b30eb 100644
--- a/src/lib/Makefile
+++ b/src/lib/Makefile
@@ -2,7 +2,7 @@ copy_files = common.sh.in
libexecs = $(filter-out librelib,$(progs))
# include common.sh in libs explicitly, because it might not exist yet
# when the wildcard is performed
-libs = $(sort $(wildcard *.sh) common.sh)
+libs = $(sort $(wildcard *.sh) common.sh conf.sh)
include ../../common.mk
diff --git a/src/lib/conf.sh b/src/lib/conf.sh.in
index 3c4234f..fa66016 100644
--- a/src/lib/conf.sh
+++ b/src/lib/conf.sh.in
@@ -40,27 +40,27 @@ list_files() {
local slug=$1
case $slug in
abs)
- echo /etc/$slug.conf
+ echo @sysconfdir@/$slug.conf
echo "$LIBREHOME/.$slug.conf"
;;
makepkg)
- if [[ ${MAKEPKG_CONF:-} != /etc/$slug.conf && -r ${MAKEPKG_CONF:-} ]]; then
+ if [[ ${MAKEPKG_CONF:-} != @sysconfdir@/$slug.conf && -r ${MAKEPKG_CONF:-} ]]; then
echo "$MAKEPKG_CONF"
else
- echo /etc/$slug.conf
+ echo @sysconfdir@/$slug.conf
echo "$LIBREHOME/.$slug.conf"
fi
;;
xbs*)
- echo /etc/xbs/$slug.conf
+ echo @sysconfdir@/xbs/$slug.conf
echo "$XDG_CONFIG_HOME/xbs/$slug.conf"
;;
libretools)
- echo /etc/$slug.conf
+ echo @sysconfdir@/$slug.conf
echo "$XDG_CONFIG_HOME/libretools/$slug.conf"
;;
*)
- echo /etc/libretools.d/$slug.conf
+ echo @sysconfdir@/libretools.d/$slug.conf
echo "$XDG_CONFIG_HOME/libretools/$slug.conf"
;;
esac