Commit 98068ba2 by Ian Lance Taylor

Rework required loop to avoid crash on decstation

From-SVN: r7776
parent 1d227438
...@@ -1754,10 +1754,10 @@ fi ...@@ -1754,10 +1754,10 @@ fi
# exist in the fixed directory. This comes last since otherwise # exist in the fixed directory. This comes last since otherwise
# we might end up deleting some of these files "because they don't # we might end up deleting some of these files "because they don't
# need any change." # need any change."
while [ -n "$required" ]; do set x $required
shift
while [ $# != 0 ]; do
newreq= newreq=
set x $required
shift
while [ $# != 0 ]; do while [ $# != 0 ]; do
# $1 is the directory to copy from, $2 is the unfixed file, # $1 is the directory to copy from, $2 is the unfixed file,
# $3 is the fixed file name. # $3 is the fixed file name.
...@@ -1776,7 +1776,8 @@ while [ -n "$required" ]; do ...@@ -1776,7 +1776,8 @@ while [ -n "$required" ]; do
fi fi
shift; shift; shift shift; shift; shift
done done
required=$newreq set x $newreq
shift
done done
echo 'Cleaning up DONE files.' echo 'Cleaning up DONE files.'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment