]> gcc.gnu.org Git - gcc.git/commitdiff
Don't recursively search symlinks to `.'.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 11 May 1994 16:12:15 +0000 (16:12 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 11 May 1994 16:12:15 +0000 (16:12 +0000)
From-SVN: r7271

gcc/fixincludes

index 95d48575309e7c20adc0c03dce238c64387ffecf..d602bc5e0e2ab6d03aa9976e4b5901f953bba652 100755 (executable)
@@ -112,12 +112,15 @@ do
            # add that dir to $newdirs
            if [ -d $d1 ]
            then
-               newdirs="$newdirs $d1"
+               files="$files $d1"
+               if [ "`ls -ld $d1 | sed -n 's/.*-> //p'`" != "." ]
+               then
+                   newdirs="$newdirs $d1"
+               fi
            fi
        done
     done
 
-    files="$files $newdirs"
     dirs="$newdirs"
 done
 
This page took 0.060752 seconds and 5 git commands to generate.