Commit ce942994 by Ian Lance Taylor

Comment out loop which handled symbolic links to files

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