OSDN Git Service

Comment out loop which handled symbolic links to files
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 1994 18:31:04 +0000 (18:31 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Sep 1994 18:31:04 +0000 (18:31 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8155 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fixincludes

index ae7e184..c808fd8 100755 (executable)
@@ -1763,20 +1763,23 @@ if [ -r ${LIB}/$file ]; then
   fi
 fi
 
-if $LINKS; then
-  echo 'Making internal symbolic non-directory links'
-  cd ${INPUT}
-  files=`find . -type l -print`
-  for file in $files; do
-    dest=`ls -ld $file | sed -n 's/.*-> //p'`
-    if expr "$dest" : '[^/].*' > /dev/null; then    
-      target=${LIB}/`echo file | sed "s|[^/]*\$|$dest|"`
-      if [ -f $target ]; then
-        ln -s $dest ${LIB}/$file >/dev/null 2>&1
-      fi
-    fi
-  done
-fi
+# This loop does not appear to do anything, because it uses file
+# rather than $file when setting target.  It also appears to be
+# unnecessary, since the main loop processes symbolic links.
+#if $LINKS; then
+#  echo 'Making internal symbolic non-directory links'
+#  cd ${INPUT}
+#  files=`find . -type l -print`
+#  for file in $files; do
+#    dest=`ls -ld $file | sed -n 's/.*-> //p'`
+#    if expr "$dest" : '[^/].*' > /dev/null; then    
+#      target=${LIB}/`echo file | sed "s|[^/]*\$|$dest|"`
+#      if [ -f $target ]; then
+#        ln -s $dest ${LIB}/$file >/dev/null 2>&1
+#      fi
+#    fi
+#  done
+#fi
 
 # Make sure that any include files referenced using double quotes
 # exist in the fixed directory.  This comes last since otherwise