]> gcc.gnu.org Git - gcc.git/commitdiff
(rel_source_subdir): Prune out redundant /subdir/../ to prevent recursion.
authorRichard Stallman <rms@gnu.org>
Thu, 11 Nov 1993 11:01:01 +0000 (11:01 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 11 Nov 1993 11:01:01 +0000 (11:01 +0000)
From-SVN: r6068

gcc/fixproto

index 5018a4642f3945efa9f2f1570bfcc7c882768020..4ed80709d796097be81b88fc5d782d099a6ea674 100755 (executable)
@@ -192,6 +192,11 @@ for code in ALL STD ; do
          do
            new_files_to_check=""
            for file in $files_to_check ; do
+             xxfile=`echo $file | sed -e 's|/\([^/\.][^/\.]*\)/\.\./|/|'`
+             # Just in case we have edited out a symbolic link
+             if [ -f $src_dir_std/$file -a -f $src_dir_std/$xxfile ] ; then
+               file=$xxfile
+             fi
              case " $rel_source_files " in
                *" ${file} "*)
                  # Already seen $file; nothing to do
This page took 0.055169 seconds and 5 git commands to generate.