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
8f8470e0
Commit
8f8470e0
authored
Nov 11, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy files needed for other files at the very end.
From-SVN: r6067
parent
fa27d320
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
gcc/fixincludes
+29
-27
No files found.
gcc/fixincludes
View file @
8f8470e0
...
@@ -337,33 +337,6 @@ while [ $# != 0 ]; do
...
@@ -337,33 +337,6 @@ while [ $# != 0 ]; do
shift
;
shift
shift
;
shift
done
done
# Make sure that any include files referenced using double quotes
# exist in the fixed directory.
while
[
-n
"
$required
"
]
;
do
newreq
=
set
x
$required
shift
while
[
$#
!=
0
]
;
do
# $1 is the directory to copy from, $2 is the unfixed file,
# $3 is the fixed file name.
cd
${
INPUT
}
cd
$1
if
[
-r
$2
]
&&
[
!
-r
$3
]
;
then
cp
$2
$3
>
/dev/null 2>&1
||
echo
"Can't copy
$2
"
chmod +w
$3
2>/dev/null
chmod a+r
$3
2>/dev/null
echo
Copied
$2
for
include
in
`
egrep
'^[ ]*#[ ]*include[ ]*"[^/]'
$3
| sed
-e
's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'
`
;
do
dir
=
`
echo
$2
| sed
-e
s
'|/[^/]*$||'
`
dir2
=
`
echo
$3
| sed
-e
s
'|/[^/]*$||'
`
newreq
=
"
$newreq
$1
$dir
/
$include
$dir2
/
$include
"
done
fi
shift
;
shift
;
shift
done
required
=
$newreq
done
cd
${
INPUT
}
cd
${
INPUT
}
# Install the proper definition of size_t in header files that it comes from.
# Install the proper definition of size_t in header files that it comes from.
...
@@ -1376,6 +1349,35 @@ if $LINKS; then
...
@@ -1376,6 +1349,35 @@ if $LINKS; then
done
done
fi
fi
# Make sure that any include files referenced using double quotes
# exist in the fixed directory. This comes last since otherwise
# we might end up deleting some of these files "because they don't
# need any change."
while
[
-n
"
$required
"
]
;
do
newreq
=
set
x
$required
shift
while
[
$#
!=
0
]
;
do
# $1 is the directory to copy from, $2 is the unfixed file,
# $3 is the fixed file name.
cd
${
INPUT
}
cd
$1
if
[
-r
$2
]
&&
[
!
-r
$3
]
;
then
cp
$2
$3
>
/dev/null 2>&1
||
echo
"Can't copy
$2
"
chmod +w
$3
2>/dev/null
chmod a+r
$3
2>/dev/null
echo
Copied
$2
for
include
in
`
egrep
'^[ ]*#[ ]*include[ ]*"[^/]'
$3
| sed
-e
's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'
`
;
do
dir
=
`
echo
$2
| sed
-e
s
'|/[^/]*$||'
`
dir2
=
`
echo
$3
| sed
-e
s
'|/[^/]*$||'
`
newreq
=
"
$newreq
$1
$dir
/
$include
$dir2
/
$include
"
done
fi
shift
;
shift
;
shift
done
required
=
$newreq
done
echo
'Cleaning up DONE files.'
echo
'Cleaning up DONE files.'
cd
$LIB
cd
$LIB
find
.
-name
DONE
-exec
rm
-f
'{}'
';'
find
.
-name
DONE
-exec
rm
-f
'{}'
';'
...
...
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