diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-01 06:36:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-01 06:36:45 +0000 |
commit | 7472b59bb415a58e5f9d6d38dddc52420104e402 (patch) | |
tree | 3391b9d790567ceeb88558b21d008b9eabe82b14 /abuild.in | |
parent | 0190dfaf8f63b056f4f2e83ea119c276ed2df42a (diff) | |
download | abuild-7472b59bb415a58e5f9d6d38dddc52420104e402.tar.gz abuild-7472b59bb415a58e5f9d6d38dddc52420104e402.tar.bz2 abuild-7472b59bb415a58e5f9d6d38dddc52420104e402.tar.xz abuild-7472b59bb415a58e5f9d6d38dddc52420104e402.zip |
abuild: always set CBUILD and CTARGET if unset
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -158,8 +158,6 @@ default_sanitycheck() { # check if CARCH, CBUILD, CHOST and CTARGET is set [ -z "$CHOST" ] && die "Please set CHOST in /etc/abuild.conf" - [ -z "$CBUILD" ] && CBUILD="$CHOST" - [ -z "$CTARGET" ] && CTARGET="$CHOST" if [ -z "$CARCH" ]; then die "Please fix CHOST, or set CARCH in abuild.conf" @@ -1911,6 +1909,9 @@ if [ -z "$CLIBC" ]; then esac fi +[ -z "$CBUILD" ] && CBUILD="$CHOST" +[ -z "$CTARGET" ] && CTARGET="$CHOST" + cd "$startdir" || die . "$APKBUILD" |