summaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-09-24 12:00:06 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-09-24 12:00:06 +0000
commitef90902a7fd99ad88e7457df163422cd814a891e (patch)
tree1cdc412f2bc66e156fa1c00ffd2db054067ede6e /gcc/fixincludes
parentd80a20bdcc7d0b3a6961c75e0136746d4af09c40 (diff)
downloadgcc-ef90902a7fd99ad88e7457df163422cd814a891e.tar.gz
Insert newlines just before end of 'sed' command strings if last 'sed'
command is 'a' or 'i'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@12830 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 5b7ddfc0c76..f4803b728ff 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -2078,13 +2078,17 @@ for files in curses.h; do
echo Fixing $file
sed -e '/^#[ ]*define[ ][ ]*bool[ ][ ]*char[ ]*$/i\
-#ifndef __cplusplus'\
+#ifndef __cplusplus
+'\
-e '/^#[ ]*define[ ][ ]*bool[ ][ ]*char[ ]*$/a\
-#endif'\
+#endif
+'\
-e '/^typedef[ ][ ]*char[ ][ ]*bool[ ]*;/i\
-#ifndef __cplusplus'\
+#ifndef __cplusplus
+'\
-e '/^typedef[ ][ ]*char[ ][ ]*bool[ ]*;/a\
-#endif'\
+#endif
+'\
${LIB}/$file > ${LIB}/${file}.sed
rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
if cmp $file ${LIB}/$file >/dev/null 2>&1; then