aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1994-07-19 00:54:49 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1994-07-19 00:54:49 +0000
commit98068ba2d74c5bc65dd48973cc6dfd727ffeeef3 (patch)
tree4de84a5d10815ca61de14a26186c466c7f452723 /gcc/fixincludes
parent1d227438dc9341dc35d5e433dccb7b72ed0efb0e (diff)
downloadgcc-98068ba2d74c5bc65dd48973cc6dfd727ffeeef3.zip
gcc-98068ba2d74c5bc65dd48973cc6dfd727ffeeef3.tar.gz
gcc-98068ba2d74c5bc65dd48973cc6dfd727ffeeef3.tar.bz2
Rework required loop to avoid crash on decstation
From-SVN: r7776
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 0254022..bb38d76 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -1754,10 +1754,10 @@ fi
# exist in the fixed directory. This comes last since otherwise
# we might end up deleting some of these files "because they don't
# need any change."
-while [ -n "$required" ]; do
+set x $required
+shift
+while [ $# != 0 ]; do
newreq=
- set x $required
- shift
while [ $# != 0 ]; do
# $1 is the directory to copy from, $2 is the unfixed file,
# $3 is the fixed file name.
@@ -1776,7 +1776,8 @@ while [ -n "$required" ]; do
fi
shift; shift; shift
done
- required=$newreq
+ set x $newreq
+ shift
done
echo 'Cleaning up DONE files.'