summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-10-30 20:52:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-11-29 18:15:37 -0500
commit2377050eaf8c212062454e343e1c75043b702961 (patch)
treeb0a1fc0620ba35672f617790c901f8609f56d90f /src/lib
parentdc87e08cdac2bd70d1d1f9412717fb226e8de387 (diff)
lib/conf.sh: learn about XBS config files
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/conf.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh
index 7555794..07b6fd5 100644
--- a/src/lib/conf.sh
+++ b/src/lib/conf.sh
@@ -49,6 +49,14 @@ list_files() {
echo "$LIBREHOME/.$slug.conf"
fi
;;
+ xbs)
+ echo /etc/$slug.conf
+ echo "$XDG_CONFIG_HOME/$slug.conf"
+ ;;
+ xbs*)
+ echo /etc/xbs.d/$slug.conf
+ echo "$XDG_CONFIG_HOME/xbs.d/$slug.conf"
+ ;;
libretools)
echo /etc/$slug.conf
echo "$XDG_CONFIG_HOME/libretools/$slug.conf"
@@ -73,6 +81,9 @@ list_envvars() {
PKGEXT SRCEXT \
GPGKEY PACKAGER
;;
+ xbs)
+ printf '%s\n' BUILDSYSTEM
+ ;;
*) :;;
esac
}