xbps-src: set XBPS_TARGET_MACHINE if unset.

This commit is contained in:
Juan RP 2015-02-10 10:38:13 +01:00
parent eb011d66af
commit 9a21eb0385
1 changed files with 3 additions and 0 deletions

View File

@ -454,6 +454,9 @@ fi
if [ -n "$XBPS_ARCH" ]; then
export XBPS_MACHINE=$XBPS_ARCH
fi
if [ -z "$XBPS_TARGET_MACHINE" ]; then
export XBPS_TARGET_MACHINE=${XBPS_ARCH:=$XBPS_MACHINE}
fi
export XBPS_SHUTILSDIR XBPS_CROSSPFDIR XBPS_TRIGGERSDIR \
XBPS_SRCPKGDIR XBPS_COMMONDIR XBPS_BUILDDIR XBPS_REPO_DELTAS \