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
2eee08f7
Commit
2eee08f7
authored
Nov 09, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid use of | in sed regexp; use multiple s commands.
From-SVN: r2720
parent
d0099910
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
gcc/fixinc.svr4
+10
-2
No files found.
gcc/fixinc.svr4
View file @
2eee08f7
...
@@ -911,7 +911,10 @@ else
...
@@ -911,7 +911,10 @@ else
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
echo
Checking
$file_to_fix
sed
-e
's/extern struct \(stdata\|strevent\);/struct \1;/'
$file_to_fix
>
/tmp/
$base
sed
-e
'
s/extern struct stdata;/struct stdata;/g
s/extern struct strevent;/struct strevent;/g
'
$file_to_fix
>
/tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
echo
No change needed
in
$file_to_fix
echo
No change needed
in
$file_to_fix
else
else
...
@@ -935,7 +938,12 @@ else
...
@@ -935,7 +938,12 @@ else
fi
fi
if
[
\!
-z
"
$file_to_fix
"
]
;
then
if
[
\!
-z
"
$file_to_fix
"
]
;
then
echo
Checking
$file_to_fix
echo
Checking
$file_to_fix
sed
-e
's/extern struct \(strbuf\|uio\|thread\|proc\);/struct \1;/'
$file_to_fix
>
/tmp/
$base
sed
-e
'
s/extern struct strbuf;/struct strbuf;/g
s/extern struct uio;/struct uio;/g
s/extern struct thread;/struct thread;/g
s/extern struct proc;/struct proc;/g
'
$file_to_fix
>
/tmp/
$base
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
if
cmp
$file_to_fix
/tmp/
$base
>
/dev/null 2>&1
;
then
\
echo
No change needed
in
$file_to_fix
echo
No change needed
in
$file_to_fix
else
else
...
...
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