summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-23 09:56:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-23 10:07:36 +0000
commita1d23dc9951e1e182bb611c1dd0e1078879d2774 (patch)
treee4d01749d9d92db4afd6d8503b672a847804404a
parent18b09f9d91373da025168bc32116ae9953cfcf6b (diff)
downloadabuild-a1d23dc9951e1e182bb611c1dd0e1078879d2774.tar.gz
abuild-a1d23dc9951e1e182bb611c1dd0e1078879d2774.tar.bz2
abuild-a1d23dc9951e1e182bb611c1dd0e1078879d2774.tar.xz
abuild-a1d23dc9951e1e182bb611c1dd0e1078879d2774.zip
abuild: rename _builddir to builddir
the _ prefix is reserved for APKBUILD. This is to avoid use variable names in APKBUILD that may clash with abuilds internal vars
-rw-r--r--abuild.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index d8c6029..ac43a11 100644
--- a/abuild.in
+++ b/abuild.in
@@ -532,7 +532,8 @@ getpkgver() {
default_prepare() {
local i
- cd "$_builddir"
+ cd "${builddir:-$srcdir/$pkgname-$pkgver}" \
+ || { error "Is \$builddir set correctly?"; return 1; }
for i in $source; do
case $i in
*.patch)