From: Richard Stallman Date: Mon, 9 Nov 1992 07:25:45 +0000 (+0000) Subject: Avoid use of | in sed regexp; use multiple s commands. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2eee08f737c299c696367c0066a735b4a508548f;p=platform%2Fupstream%2Fgcc.git Avoid use of | in sed regexp; use multiple s commands. From-SVN: r2720 --- diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4 index 8dcc882..cae39fc 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