summaryrefslogtreecommitdiffstats
path: root/functions.sh.in
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:40 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-09 07:14:33 +0000
commit0f5feef3c2b47590811e3c9abdfdd224701cde5d (patch)
treee706d152ac175aa42f79b58cd791d46a6f3ecbc7 /functions.sh.in
parentcfa6c7d67ab934dfe1dd083f11f2ce4dcc400afc (diff)
downloadabuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.tar.bz2
abuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.tar.xz
functions: also honor .abuild file at gitbase
This permits introducing branch-specific modifications to abuild.conf settings. Any settings there override /etc/abuild.conf and $HOME/.abuild/abuild.conf.
Diffstat (limited to 'functions.sh.in')
-rw-r--r--functions.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.sh.in b/functions.sh.in
index 0b0bc3b..395e407 100644
--- a/functions.sh.in
+++ b/functions.sh.in
@@ -46,6 +46,8 @@ readconfig() {
APORTSDIR=
fi
fi
+ # source any .abuild file at the aports root, but only if we are currently in aports tree
+ [ -n "$APORTSDIR" ] && [ -f "$APORTSDIR/.abuild" ] && [ "$APORTSDIR" = "$gitbase" ] && . "$APORTSDIR/.abuild"
BUILDDIR=${_BUILDDIR-$BUILDDIR}
PKGDEST=${_PKGDEST-$PKGDEST}
SRCPKGDEST=${_SRCPKGDEST-$SRCPKGDEST}