diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-11-06 15:27:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-11-06 15:27:10 +0000 |
commit | 59bcc571dadaf1054016d4ac8d0a992d0b3a29d2 (patch) | |
tree | f5ccf1a8c2dad4c89835a4355dc90c27587e7a92 /abuild | |
parent | fe74ef1b8458d281714ac1066ccd424cab71ca9a (diff) | |
download | abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.gz abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.bz2 abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.tar.xz abuild-59bcc571dadaf1054016d4ac8d0a992d0b3a29d2.zip |
rename makedepends to splitfuncs
Diffstat (limited to 'abuild')
-rwxr-xr-x | abuild | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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 |