From 0f5feef3c2b47590811e3c9abdfdd224701cde5d Mon Sep 17 00:00:00 2001 From: Dubiousjim Date: Fri, 5 Jul 2013 00:21:40 -0400 Subject: 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. --- functions.sh.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'functions.sh.in') 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} -- cgit v1.2.3