summaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-06 07:13:44 +0000
committerkorbb <korbb@138bc75d-0d04-0410-961f-82ee72b054a4>1999-07-06 07:13:44 +0000
commitabf4105459e40110807cb8ee24bfa457e75d1f91 (patch)
tree60aa800197635550775f56c8e91f2a1aa19d3668 /gcc/fixinc
parentf2278ddb4e312a32cd78e5c49f7f7ab2bc6babf5 (diff)
downloadgcc-abf4105459e40110807cb8ee24bfa457e75d1f91.tar.gz
Double the backslash so sed gets a chance to see it.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27953 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixincl.x2
-rwxr-xr-xgcc/fixinc/inclhack.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index e451a910482..5f79228ff67 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -812,7 +812,7 @@ s/\\\\+++fixinc_eol+++/\\\\/g\n\
s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*/[^*].*%\\1%\n\
s%^\\([ \t]*#[ \t]*else\\)[ \t][ \t]*[^/ \t].*%\\1%\n\
s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*/[^*].*%\\1%\n\
-s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]**[^/].*%\\1%\n\
+s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*\\*[^/].*%\\1%\n\
s%^\\([ \t]*#[ \t]*endif\\)[ \t][ \t]*[^/* \t].*%\\1%",
(char*)NULL };
diff --git a/gcc/fixinc/inclhack.sh b/gcc/fixinc/inclhack.sh
index e441eb9a240..ec2501be690 100755
--- a/gcc/fixinc/inclhack.sh
+++ b/gcc/fixinc/inclhack.sh
@@ -920,7 +920,7 @@ s/\\+++fixinc_eol+++/\\/g
s%^\([ ]*#[ ]*else\)[ ][ ]*/[^*].*%\1%
s%^\([ ]*#[ ]*else\)[ ][ ]*[^/ ].*%\1%
s%^\([ ]*#[ ]*endif\)[ ][ ]*/[^*].*%\1%
-s%^\([ ]*#[ ]*endif\)[ ][ ]**[^/].*%\1%
+s%^\([ ]*#[ ]*endif\)[ ][ ]*\*[^/].*%\1%
s%^\([ ]*#[ ]*endif\)[ ][ ]*[^/* ].*%\1%' \
< $infile > ${DESTDIR}/fixinc.tmp
rm -f ${DESTFILE}