# HG changeset patch # User "Yann E. MORIN" # Date 1223809797 0 # Node ID 70f7ea9f910ae739e604f3429a72e72326b14bab # Parent 819bb22347d47be4212c07d9727e821f944fdf7e 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(-) diff -r 819bb22347d4 -r 70f7ea9f910a scripts/functions --- a/scripts/functions Sun Oct 12 10:38:02 2008 +0000 +++ b/scripts/functions Sun Oct 12 11:09:57 2008 +0000 @@ -88,7 +88,7 @@ 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 @@ # 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}"