summaryrefslogtreecommitdiff
path: root/gcc/fixinc.svr4
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-11-09 07:25:45 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-11-09 07:25:45 +0000
commitb66eea28e5a863679eb8ae3a3a8220d0a8ce95c0 (patch)
treeb68b46dadae150d45bab05860038ca2e9fdd0a26 /gcc/fixinc.svr4
parente0d5e70f4a5d03f326c76c3bdc28ec0bf3d4e7fb (diff)
downloadgcc-b66eea28e5a863679eb8ae3a3a8220d0a8ce95c0.tar.gz
Avoid use of | in sed regexp; use multiple s commands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2720 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc.svr4')
-rwxr-xr-xgcc/fixinc.svr412
1 files changed, 10 insertions, 2 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index 8dcc8825929..cae39fc3f41 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -911,7 +911,10 @@ else
fi
if [ \! -z "$file_to_fix" ]; then
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 \
echo No change needed in $file_to_fix
else
@@ -935,7 +938,12 @@ else
fi
if [ \! -z "$file_to_fix" ]; then
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 \
echo No change needed in $file_to_fix
else