diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1996-10-02 21:30:23 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1996-10-02 21:30:23 +0000 |
commit | 085540da9cdac32931b9d2948dde6857326fd92d (patch) | |
tree | de5249e52263e74eb55b957c1ae76f11714270f7 /gcc/fixincludes | |
parent | bdb669cb231c8b804030fb806bb1c647a1c20fda (diff) | |
download | gcc-085540da9cdac32931b9d2948dde6857326fd92d.zip gcc-085540da9cdac32931b9d2948dde6857326fd92d.tar.gz gcc-085540da9cdac32931b9d2948dde6857326fd92d.tar.bz2 |
Hack around HP/UX 10.20 sed bug
From-SVN: r12891
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-x | gcc/fixincludes | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index a687766..4071754 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -261,6 +261,8 @@ while [ $# != 0 ]; do || echo "Can't copy $file" chmod +w $2/$file chmod a+r $2/$file + # The fixinc_eol stuff is to work around a bug in the sed + # program on HP/UX 10.20. # 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. @@ -270,7 +272,9 @@ while [ $# != 0 ]; do sed -e ' :loop /\\$/ N + s/\\$/\\*fixinc_eol*/ /\\$/ b loop + s/\\\*fixinc_eol\*/\\/g s%^\([ ]*#[ ]*else\)[ ]*/[^*].*%\1% s%^\([ ]*#[ ]*else\)[ ]*[^/ ].*%\1% s%^\([ ]*#[ ]*endif\)[ ]*/[^*].*%\1% |