diff options
author | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-19 20:19:29 +0000 |
---|---|---|
committer | rms <rms@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-11-19 20:19:29 +0000 |
commit | 4518406447b7385f2dfe895ea8838f14a9c33428 (patch) | |
tree | 58ed695508d972476ce5e3c8ace0999ec17ecff8 /gcc/fixinc.dgux | |
parent | 1d65947cb8745db23953e596c2a4916be2b173ef (diff) | |
download | gcc-4518406447b7385f2dfe895ea8838f14a9c33428.tar.gz |
When compute DOTS, convert /./ to / to avoid
accidentally converting it to /../.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6113 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.dgux')
-rwxr-xr-x | gcc/fixinc.dgux | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fixinc.dgux b/gcc/fixinc.dgux index 6a7b1a57aea..7a7345698e3 100755 --- a/gcc/fixinc.dgux +++ b/gcc/fixinc.dgux @@ -107,7 +107,7 @@ if $LINKS; then y=`echo $x | sed -n "s&${INPUT}/&&p"` # DOTS is the relative path from ${LIB}/$file's dir back to ${LIB}. dots=`echo "$file" | - sed -e 's@^./@@' -e 's@[^/][^/]*@..@g' -e 's@..$@@'` + sed -e 's@^./@@' -e 's@/./@/@g' -e 's@[^/][^/]*@..@g' -e 's@..$@@'` echo $file '->' $dots$y ': Making link' rm -fr ${LIB}/$file > /dev/null 2>&1 ln -s $dots$y ${LIB}/$file > /dev/null 2>&1 |