diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-07-12 21:52:24 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-07-12 21:52:24 (GMT) |
commit | 151ec4a0df72afaa5502a6ef32844e8dcc85c561 (patch) | |
tree | a957cb643f9759f9f71f87621635e3f87edd4569 /scripts/crosstool-NG.sh.in | |
parent | 7ddae7f671b8d20892c997c0fee1fc4c5920f5a7 (diff) |
scripts, cc/gcc: do not fail on existing symlinks or build.log
If the user builds a toolchain over an existing one, so, without removing
CT_PREFIX_DIR, the build fails as the symlinks already exist, as does the
build.log.
This can also happen (for build.log) if the user first ran in download-
or extract-only.
Patch (with no SoB) originally from:
Phil Wilshire <phil.wilshire@overturenetworks.com>
Modified by me as it did not apply cleanly.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 1ebc2248cc60230cd53ff94ae8f8f1e3261461a3)
Diffstat (limited to 'scripts/crosstool-NG.sh.in')
-rw-r--r-- | scripts/crosstool-NG.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/crosstool-NG.sh.in b/scripts/crosstool-NG.sh.in index 975024a..eb2fbfe 100644 --- a/scripts/crosstool-NG.sh.in +++ b/scripts/crosstool-NG.sh.in @@ -597,7 +597,7 @@ CT_DoEnd INFO # moment... Consign all ouptut to oblivion... CT_DoLog INFO "Finishing installation (may take a few seconds)..." exec >/dev/null 2>&1 - +rm -f ${CT_PREFIX_DIR}/build.log.bz2 if [ "${CT_LOG_TO_FILE}" = "y" ]; then cp "${tmp_log_file}" "${CT_PREFIX_DIR}/build.log" if [ "${CT_LOG_FILE_COMPRESS}" = y ]; then |