summaryrefslogtreecommitdiff
path: root/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-11-06 15:27:10 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-11-06 15:27:10 +0000
commit59bcc571dadaf1054016d4ac8d0a992d0b3a29d2 (patch)
treef5ccf1a8c2dad4c89835a4355dc90c27587e7a92 /abuild
parentfe74ef1b8458d281714ac1066ccd424cab71ca9a (diff)
downloadabuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.gz
abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.bz2
abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.xz
abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.zip
rename makedepends to splitfuncs
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild18
1 files changed, 9 insertions, 9 deletions
diff --git a/abuild b/abuild
index 36181b1..b479b94 100755
--- a/abuild
+++ b/abuild
@@ -137,7 +137,7 @@ clean() {
rm -rf "$srcdir"
rm -rf "$pkgdir"
local i
- for i in $subpackages; do
+ for i in $splitfuncs; do
rm -rf "$pkgdir-$i"
done
}
@@ -157,7 +157,7 @@ cleanpkg() {
local p="$pkgname-$pkgver-$pkgrel"
rm -f "$PKGDEST/$p.apk" "$PKGDEST/$p.src.tar.gz"
local i
- for i in $subpackages; do
+ for i in $splitfuncs; do
INSUB=1 subpkgdir="$pkgdir-$i" $0 $i cleanpkg
done
}
@@ -174,10 +174,10 @@ build() {
}
subpkg() {
- [ -z "$subpackages" ] && return 0
+ [ -z "$splitfuncs" ] && return 0
local i
cd "$startdir"
- for i in $subpackages; do
+ for i in $splitfuncs; do
INSUB=1 subpkgdir="$pkgdir-$i" $0 $i package || return 1
done
}
@@ -248,7 +248,7 @@ package() {
package_apk
}
-# predefined subpackage doc
+# predefined splitfunc doc
doc() {
pkgname="$pkgname-doc"
depends=""
@@ -267,7 +267,7 @@ doc() {
return 0
}
-# predefined subpackage mod
+# predefined splitfunc mod
mod() {
pkgname="$pkgname-mod"
depends="$kernel"
@@ -280,7 +280,7 @@ mod() {
done
}
-# predefined subpackage dev
+# predefined splitfunc dev
dev() {
depends="$pkgname"
pkgname="$pkgname-dev"
@@ -377,8 +377,8 @@ shift $(( $OPTIND - 1 ))
[ -f "$APKBUILD" ] || die "Could not find $APKBUILD (PWD=$PWD)"
. "$APKBUILD"
-# If we are handling a sub package then reset subpackages
-[ -n "$INSUB" ] && subpackages=
+# If we are handling a sub package then reset splitfuncs
+[ -n "$INSUB" ] && splitfuncs=
trap 'die "Aborted by user"' INT