Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
884caf18
Commit
884caf18
authored
Jul 01, 1993
by
Paul Eggert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't create absolute symbolic links;
make them relative instead. From-SVN: r4815
parent
458e8901
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
gcc/fixinc.svr4
+5
-2
gcc/fixincludes
+9
-3
No files found.
gcc/fixinc.svr4
View file @
884caf18
...
...
@@ -113,9 +113,12 @@ if $LINKS; then
if
expr
$x
:
"
${
INPUT
}
/.*"
>
/dev/null
;
then
# Y gets the actual target dir name, relative to ${INPUT}.
y
=
`
echo
$x
| sed
-n
"s&
${
INPUT
}
/&&p"
`
echo
$file
'->'
$y
': Making link'
# DOTS is the relative path from ${LIB}/$file's dir back to ${LIB}.
dots
=
`
echo
"
$file
"
|
sed
-e
's@^./@@'
-e
's@[^/][^/]*@..@g'
-e
's@..$@@'
`
echo
$file
'->'
$dots$y
': Making link'
rm
-fr
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
$
{
LIB
}
/
$y
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
$
dots
$y
${
LIB
}
/
$file
>
/dev/null 2>&1
else
# If the link is to outside ${INPUT},
# treat this directory as if it actually contained the files.
...
...
gcc/fixincludes
View file @
884caf18
...
...
@@ -161,9 +161,12 @@ if $LINKS; then
elif
expr
$x
:
"
${
INPUT
}
/.*"
>
/dev/null
;
then
# Y gets the actual target dir name, relative to ${INPUT}.
y
=
`
echo
$x
| sed
-n
"s&
${
INPUT
}
/&&p"
`
echo
$file
'->'
$y
': Making link'
# DOTS is the relative path from ${LIB}/$file's dir back to ${LIB}.
dots
=
`
echo
"
$file
"
|
sed
-e
's@^./@@'
-e
's@[^/][^/]*@..@g'
-e
's@..$@@'
`
echo
$file
'->'
$dots$y
': Making link'
rm
-fr
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
$
{
LIB
}
/
$y
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
$
dots
$y
${
LIB
}
/
$file
>
/dev/null 2>&1
else
# If the link is to a dir $target outside ${INPUT},
# repoint the link at ${INPUT}/root$target
...
...
@@ -201,8 +204,11 @@ if $LINKS; then
;;
esac
done
# DOTS is the relative path from ${LIB}/$file's dir back to ${LIB}.
dots
=
`
echo
"
$file
"
|
sed
-e
's@^./@@'
-e
's@[^/][^/]*@..@g'
-e
's@..$@@'
`
rm
-fr
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
${
LIB
}
/
root
$x
${
LIB
}
/
$file
>
/dev/null 2>&1
ln
-s
${
dots
}
root
$x
${
LIB
}
/
$file
>
/dev/null 2>&1
treetops
=
"
$treetops
$x
${
LIB
}
/root
$x
"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment