summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-23 09:58:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-23 10:08:00 +0000
commit270e5337e7185bff33b733d3d06da38f38ac6456 (patch)
tree1f3114a4e15699b5b2a1809a342af456a7111804
parenta1d23dc9951e1e182bb611c1dd0e1078879d2774 (diff)
downloadabuild-270e5337e7185bff33b733d3d06da38f38ac6456.tar.gz
abuild-270e5337e7185bff33b733d3d06da38f38ac6456.tar.bz2
abuild-270e5337e7185bff33b733d3d06da38f38ac6456.tar.xz
abuild-270e5337e7185bff33b733d3d06da38f38ac6456.zip
newapkbuild: rename _builddir to builddir
the _builddir should never been used bu abuild due to the _ prefix.
-rw-r--r--newapkbuild.in12
1 files changed, 6 insertions, 6 deletions
diff --git a/newapkbuild.in b/newapkbuild.in
index 64b726b..1f14498 100644
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -197,15 +197,15 @@ source="$source"
__EOF__
abuild -f fetch unpack
- # Figure out the _builddir
+ # Figure out the builddir
for i in src/*; do
if [ -d "$i" ]; then
sdir=$i
- _builddir=$(echo ${i#*/} | sed "s/$pv/\$pkgver/g")
- _builddir="\"\$srcdir\"/$_builddir"
+ builddir=$(echo ${i#*/} | sed "s/$pv/\$pkgver/g")
+ builddir="\"\$srcdir\"/$_builddir"
fi
done
- echo "_builddir=$_builddir" >> APKBUILD
+ echo "builddir=$builddir" >> APKBUILD
# Check if its autotools
if [ -z "$buildtype" ]; then
@@ -227,7 +227,7 @@ __EOF__
# Create build() function
cat >>APKBUILD<<__EOF__
build() {
- cd "\$_builddir"
+ cd "\$builddir"
__EOF__
case "$buildtype" in
@@ -251,7 +251,7 @@ __EOF__
# Create package() function
cat >>APKBUILD<<__EOF__
package() {
- cd "\$_builddir"
+ cd "\$builddir"
__EOF__
case "$buildtype" in