diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-05 00:21:40 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-09 07:14:33 +0000 |
commit | 0f5feef3c2b47590811e3c9abdfdd224701cde5d (patch) | |
tree | e706d152ac175aa42f79b58cd791d46a6f3ecbc7 /functions.sh.in | |
parent | cfa6c7d67ab934dfe1dd083f11f2ce4dcc400afc (diff) | |
download | abuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.tar.gz abuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.tar.bz2 abuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.tar.xz abuild-0f5feef3c2b47590811e3c9abdfdd224701cde5d.zip |
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.in | 2 |
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} |