Mercurial > hg > aboriginal
diff sources/functions.sh @ 898:db0f536aee7c
Fix hw-target builds so prerequisites build if they don't already exist.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 22 Nov 2009 03:56:04 -0600 |
parents | 850da666acc6 |
children | 726cac165450 |
line wrap: on
line diff
--- a/sources/functions.sh Sat Nov 21 04:27:58 2009 -0600 +++ b/sources/functions.sh Sun Nov 22 03:56:04 2009 -0600 @@ -588,18 +588,26 @@ function check_for_base_arch() { + blank_tempdir "$STAGE_DIR" + blank_tempdir "$WORK" + # If we're building something with a base architecture, symlink to actual # target. - if [ "$ARCH" != "$ARCH_NAME" ] && [ -e "$BUILD/$STAGE_NAME-$ARCH" ] + if [ "$ARCH" != "$ARCH_NAME" ] then - echo === Using existing $STAGE_NAME-"$ARCH" - link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"} [ -e $STAGE_NAME-"$ARCH".tar.bz2 ] && link_arch_name $STAGE_NAME-{"$ARCH","$ARCH_NAME"}.tar.bz2 - return 1 + if [ -e "$BUILD/$STAGE_NAME-$ARCH" ] + then + echo "=== Using existing ${STAGE_NAME}-$ARCH" + + return 1 + else + mkdir -p "$BUILD/$STAGE_NAME-$ARCH" || dienow + fi fi }