summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-07 20:33:49 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-07-07 20:33:49 (GMT)
commit1e2788c0440aff17f2953280443d429a62de09c8 (patch)
tree9744e862860d096fc0e769346292c99e8e3ecdb9
parentcaa0b3abe04e5759c02bcbc2f2f2901d37745e82 (diff)
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)
-rw-r--r--scripts/build/internals.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 13239bf..abf6b47 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -31,7 +31,11 @@ do_finish() {
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