# HG changeset patch # User "Yann E. MORIN" # Date 1310248925 -7200 # Node ID 1c0580ebdf9d1f9515428b74ef96b3602e6b18d1 # Parent cb36b00916716d2838b52a79a2dba0f45d6e7cc1 scripts: on startup, also remove the buildtools dir In case there's one lingering around (whether the previous build was successful, or failed), we have to remove the buildtools directory as well as the toochain build dir. This should also fix the case where out makeinfo wrapper calls itself recursively. Signed-off-by: "Yann E. MORIN" (transplanted from 0e8ff57073838afea8830fe09d1d01cdf7cb37d8) diff -r cb36b0091671 -r 1c0580ebdf9d scripts/crosstool-NG.sh.in --- a/scripts/crosstool-NG.sh.in Fri Apr 15 00:05:53 2011 +0200 +++ b/scripts/crosstool-NG.sh.in Sun Jul 10 00:02:05 2011 +0200 @@ -208,9 +208,8 @@ CT_DoLog EXTRA "Preparing working directories" # Ah! The build directory shall be eradicated, even if we restart! -if [ -d "${CT_BUILD_DIR}" ]; then - CT_DoForceRmdir "${CT_BUILD_DIR}" -fi +# Ditto for the build tools install dir +CT_DoForceRmdir "${CT_BUILD_DIR}" "${CT_BUILDTOOLS_PREFIX_DIR}" # Don't eradicate directories if we need to restart if [ -z "${CT_RESTART}" ]; then