diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-12 11:09:57 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-10-12 11:09:57 +0000 |
commit | 5276fc869dad0bce1c19f362a816760c45ab7c2b (patch) | |
tree | d67f99b7fac4cba5c1302d86b72fa675146c46f7 /scripts/functions | |
parent | c7771e81fa0b111a2b1a19c9719648d53f083ab1 (diff) | |
download | crosstool-ng-5276fc869dad0bce1c19f362a816760c45ab7c2b.tar.gz crosstool-ng-5276fc869dad0bce1c19f362a816760c45ab7c2b.tar.bz2 crosstool-ng-5276fc869dad0bce1c19f362a816760c45ab7c2b.zip |
Use ERROR level for make errors.
Rename the C library addons directories rather than symlinking.
/trunk/scripts/functions | 10 7 3 0 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions index 829539f7..ffed6c7d 100644 --- a/scripts/functions +++ b/scripts/functions @@ -88,7 +88,7 @@ CT_DoLog() { y,*"warning:"*) cur_L=WARN; cur_l=${CT_LOG_LEVEL_WARN};; y,*"WARNING:"*) cur_L=WARN; cur_l=${CT_LOG_LEVEL_WARN};; *"error:"*) cur_L=ERROR; cur_l=${CT_LOG_LEVEL_ERROR};; - *"make["?*"]:"*"Stop.") cur_L=ERROR; cur_l=${CT_LOG_LEVEL_ERROR};; + *"make["*"]: *** ["*) cur_L=ERROR; cur_l=${CT_LOG_LEVEL_ERROR};; *) cur_L="${LEVEL}"; cur_l="${level}";; esac # There will always be a log file (stdout, fd #1), be it /dev/null @@ -596,8 +596,12 @@ CT_ExtractAndPatch() { # Some addon tarballs directly contain the correct addon directory, # while others have the addon directory named after the tarball. # Fix that by always using the short name (eg: linuxthreads, ports, etc...) - addon_short_name=$(echo "${file}" |sed -r -e 's/^[^-]+-//; s/-[^-]+$//;') - [ -d "${addon_short_name}" ] || ln -s "${file}" "${addon_short_name}" + addon_short_name=$(echo "${file}" |sed -r -e 's/^[^-]+-([^-]+)-.*$/\1/;') + if [ ! -d "${addon_short_name}" ]; then + mv "${file}" "${addon_short_name}" + # Keep a symlink to avoid re-extracting later on. + ln -s "${addon_short_name}" "${file}" + fi # If libc addon, we're already in the correct place else cd "${file}" |