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
165b3941
Commit
165b3941
authored
Aug 01, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Find the links to directories by finding each link and testing it with test.
From-SVN: r1740
parent
e2301a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
gcc/fixincludes
+17
-2
No files found.
gcc/fixincludes
View file @
165b3941
...
@@ -68,9 +68,24 @@ do
...
@@ -68,9 +68,24 @@ do
fi
fi
# Find all directories under $d, relative to $d, excluding $d itself.
# Find all directories under $d, relative to $d, excluding $d itself.
files
=
"
$files
`
find
$d
-type
d
-print
| sed
'|/\.$|d'
`
"
files
=
"
$files
`
find
$d
-type
d
-print
|
\
sed
-e
'/\/\.$/d'
-e
'/^\.$/d'
`
"
# Find all links to directories.
# Using `-exec test -d' in find fails on some systems,
# and trying to run test via sh fails on others,
# so this is the simplest alternative left.
# First find all the links, then test each one.
theselinks
=
$LINKS
&&
\
$LINKS
&&
\
newdirs
=
"
$newdirs
`
find
$d
-type
l
-exec
test
-d
'{}'
\;
-print
`
"
theselinks
=
`
find
$d
-type
l
-print
`
for
d1
in
$theselinks
--dummy--
do
# If it is a directory, add it to $newdirs
if
[
-d
$d1
]
then
newdirs
=
"
$newdirs
$d1
"
fi
done
done
done
files
=
"
$files
$newdirs
"
files
=
"
$files
$newdirs
"
...
...
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