comparison sources/functions.sh @ 1741:189a1748c8bf draft

add NO_CLEANUP=temp to delete build/temp-$ARCH but not output directory.
author Rob Landley <rob@landley.net>
date Sun, 22 Feb 2015 16:53:37 -0600
parents cdc277cf7b83
children d8ea81a06fdd
comparison
equal deleted inserted replaced
1740:258427b0c8be 1741:189a1748c8bf
62 # Setup directories and add the cross compiler to the start of the path. 62 # Setup directories and add the cross compiler to the start of the path.
63 63
64 STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH_NAME}" 64 STAGE_DIR="$BUILD/${STAGE_NAME}-${ARCH_NAME}"
65 65
66 blank_tempdir "$STAGE_DIR" 66 blank_tempdir "$STAGE_DIR"
67 blank_tempdir "$WORK" 67 NO_CLEANUP=${NO_CLEANUP/temp//} blank_tempdir "$WORK"
68 68
69 export PATH="$(cc_path "$ARCH")$PATH" 69 export PATH="$(cc_path "$ARCH")$PATH"
70 [ ! -z "$HOST_ARCH" ] && [ "$HOST_ARCH" != "$ARCH" ] && 70 [ ! -z "$HOST_ARCH" ] && [ "$HOST_ARCH" != "$ARCH" ] &&
71 PATH="$(cc_path "$HOST_ARCH")$PATH" 71 PATH="$(cc_path "$HOST_ARCH")$PATH"
72 72