diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-09-28 18:31:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1994-09-28 18:31:04 +0000 |
commit | ce9429943b31a57fde286a7e05b52edba0f1605a (patch) | |
tree | c88b792157ff45ccdde42d10948be8d72e51fa9c | |
parent | c17704b31035e6d18f42ab70c469ef2342e0ed20 (diff) | |
download | gcc-ce9429943b31a57fde286a7e05b52edba0f1605a.zip gcc-ce9429943b31a57fde286a7e05b52edba0f1605a.tar.gz gcc-ce9429943b31a57fde286a7e05b52edba0f1605a.tar.bz2 |
Comment out loop which handled symbolic links to files
From-SVN: r8155
-rwxr-xr-x | gcc/fixincludes | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index ae7e184..c808fd8 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -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 |