aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-28 07:46:33 +0000
committerRichard Stallman <rms@gnu.org>1993-03-28 07:46:33 +0000
commit8caf703ce2f3da39ffd809943e18ce1c48420c4d (patch)
tree1a7c518494fdf67fcbe71b09282fa95682e6f88b
parent103b7b1789a26f41d4b47df83a0bb622daf394e6 (diff)
downloadgcc-8caf703ce2f3da39ffd809943e18ce1c48420c4d.zip
gcc-8caf703ce2f3da39ffd809943e18ce1c48420c4d.tar.gz
gcc-8caf703ce2f3da39ffd809943e18ce1c48420c4d.tar.bz2
Move comments about big sed command outside the command itself.
From-SVN: r3900
-rwxr-xr-xgcc/fixincludes10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 2fab65f..52ecb0a 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -260,6 +260,12 @@ while [ $# != 0 ]; do
|| echo "Can't copy $file"
chmod +w $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 '
:loop
/\\$/ N
@@ -276,11 +282,8 @@ while [ $# != 0 ]; do
/#define._CTRL/ s/'\''\([cgx]\)'\''/\1/g
/#define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g
/#[el]*if/{
- # Surround each word with spaces, to simplify matching below.
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/ _*i386 / __i386__ /g
s/ is68k / __is68k__ /g
@@ -295,7 +298,6 @@ while [ $# != 0 ]; do
s/ unix / __unix__ /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
}
/^#define.NULL[ ]/ i\