[finish-step] Use local variable in finish-step gcc-4.4
authorYann E. MORIN
Sun Jun 14 22:57:57 2009 +0200 (2009-06-14)
branchgcc-4.4
changeset 1408f334df41f069
parent 1407 83083566fdd0
child 1410 23a8ffdf8574
child 1771 4341aae65c61
[finish-step] Use local variable in finish-step

When wrapping the tools, use a local variable when iterating.
scripts/build/internals.sh
     1.1 --- a/scripts/build/internals.sh	Sun Jun 14 22:56:26 2009 +0200
     1.2 +++ b/scripts/build/internals.sh	Sun Jun 14 22:57:57 2009 +0200
     1.3 @@ -56,10 +56,10 @@
     1.4          # Do it unconditionally, even for those tools that happen to be shell
     1.5          # scripts, we don't know if they would in the end spawn a binary...
     1.6          # Just skip symlinks
     1.7 -        for t in "${CT_TARGET}-"*; do
     1.8 -            if [ "$( LANG=C stat -c '%F' "${t}" )" != "symbolic link" ]; then
     1.9 -                CT_DoExecLog ALL mv "${t}" ".${t}"
    1.10 -                CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}"
    1.11 +        for _t in "${CT_TARGET}-"*; do
    1.12 +            if [ "$( LANG=C stat -c '%F' "${_t}" )" != "symbolic link" ]; then
    1.13 +                CT_DoExecLog ALL mv "${t}" ".${_t}"
    1.14 +                CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${_t}"
    1.15              fi
    1.16          done
    1.17