# HG changeset patch # User Yann E. MORIN # Date 1245013077 -7200 # Node ID f334df41f0692f4b7242dd985fb2681474847037 # Parent 83083566fdd0c327bff237bd1c5576b1636c5ce5 [finish-step] Use local variable in finish-step When wrapping the tools, use a local variable when iterating. diff -r 83083566fdd0 -r f334df41f069 scripts/build/internals.sh --- a/scripts/build/internals.sh Sun Jun 14 22:56:26 2009 +0200 +++ b/scripts/build/internals.sh Sun Jun 14 22:57:57 2009 +0200 @@ -56,10 +56,10 @@ # Do it unconditionally, even for those tools that happen to be shell # scripts, we don't know if they would in the end spawn a binary... # Just skip symlinks - for t in "${CT_TARGET}-"*; do - if [ "$( LANG=C stat -c '%F' "${t}" )" != "symbolic link" ]; then - CT_DoExecLog ALL mv "${t}" ".${t}" - CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}" + for _t in "${CT_TARGET}-"*; do + if [ "$( LANG=C stat -c '%F' "${_t}" )" != "symbolic link" ]; then + CT_DoExecLog ALL mv "${t}" ".${_t}" + CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}" fi done