# HG changeset patch # User "Yann E. MORIN" # Date 1278534829 -7200 # Node ID 868d6e0792407755f6c3e7a370c66a5980950f66 # Parent 89a26b7c4a4f20054f3039a741f916e25b6e54c7 scripts/finish: do not try to symlink if sed expr is a no-op If the sed expression does not transform the tuple, do not try to create the symlink. (transplanted from 5d6d3c28a658a65551d4eb5de414fd97b575f314) diff -r 89a26b7c4a4f -r 868d6e079240 scripts/build/internals.sh --- a/scripts/build/internals.sh Sun Jun 27 18:38:12 2010 +0200 +++ b/scripts/build/internals.sh Wed Jul 07 22:33:49 2010 +0200 @@ -31,7 +31,11 @@ fi if [ -n "${CT_TARGET_ALIAS_SED_EXPR}" ]; then _t=$(echo "$t" |sed -r -e "${CT_TARGET_ALIAS_SED_EXPR}") - CT_DoExecLog ALL ln -sv "${t}" "${_t}" + if [ "${_t}" = "${t}" ]; then + CT_DoLog WARN "The sed expression '${CT_TARGET_ALIAS_SED_EXPR}' has no effect on '${t}'" + else + CT_DoExecLog ALL ln -sv "${t}" "${_t}" + fi fi done CT_Popd