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
8caf703c
Commit
8caf703c
authored
Mar 28, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move comments about big sed command outside the command itself.
From-SVN: r3900
parent
103b7b17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
gcc/fixincludes
+6
-4
No files found.
gcc/fixincludes
View file @
8caf703c
...
@@ -260,6 +260,12 @@ while [ $# != 0 ]; do
...
@@ -260,6 +260,12 @@ while [ $# != 0 ]; do
||
echo
"Can't copy
$file
"
||
echo
"Can't copy
$file
"
chmod +w
$2
/
$file
chmod +w
$2
/
$file
chmod a+r
$2
/
$file
chmod a+r
$2
/
$file
# Here is how the sed commands in braces work.
# (It doesn't work to put the comments inside the sed commands.)
# Surround each word with spaces, to simplify matching below.
# ANSIfy each pre-ANSI machine-dependent symbol
# by surrounding it with __ __.
# Remove the spaces that we inserted around each word.
sed
-e
'
sed
-e
'
:loop
:loop
/\\$/ N
/\\$/ N
...
@@ -276,11 +282,8 @@ while [ $# != 0 ]; do
...
@@ -276,11 +282,8 @@ while [ $# != 0 ]; do
/#define._CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define._CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define.BSD43_CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#define.BSD43_CTRL/ s/'
\'
'\([cgx]\)'
\'
'/\1/g
/#[el]*if/{
/#[el]*if/{
# Surround each word with spaces, to simplify matching below.
s/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g
s/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g
# ANSIfy each pre-ANSI machine-dependent symbol
# by surrounding it with __ __.
s/ bsd4\([0-9]\) / __bsd4\1__ /g
s/ bsd4\([0-9]\) / __bsd4\1__ /g
s/ _*i386 / __i386__ /g
s/ _*i386 / __i386__ /g
s/ is68k / __is68k__ /g
s/ is68k / __is68k__ /g
...
@@ -295,7 +298,6 @@ while [ $# != 0 ]; do
...
@@ -295,7 +298,6 @@ while [ $# != 0 ]; do
s/ unix / __unix__ /g
s/ unix / __unix__ /g
s/ vax / __vax__ /g
s/ vax / __vax__ /g
# Remove the spaces that we inserted around each word.
s/ \([a-zA-Z0-9_][a-zA-Z0-9_]*\) /\1/g
s/ \([a-zA-Z0-9_][a-zA-Z0-9_]*\) /\1/g
}
}
/^#define.NULL[ ]/ i\
/^#define.NULL[ ]/ i\
...
...
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