diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-09-24 12:00:06 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1996-09-24 12:00:06 +0000 |
commit | ef90902a7fd99ad88e7457df163422cd814a891e (patch) | |
tree | 1cdc412f2bc66e156fa1c00ffd2db054067ede6e /gcc/fixinc.ptx | |
parent | d80a20bdcc7d0b3a6961c75e0136746d4af09c40 (diff) | |
download | gcc-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/fixinc.ptx')
-rw-r--r-- | gcc/fixinc.ptx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/fixinc.ptx b/gcc/fixinc.ptx index d66998dd17a..7464205dd80 100644 --- a/gcc/fixinc.ptx +++ b/gcc/fixinc.ptx @@ -129,7 +129,8 @@ if [ \! -z "$file_to_fix" ]; then \ #if defined(__STDC__) || defined(__cplusplus)\ #include <stdio.h>\ -#endif /* __STDC__ */' \ +#endif /* __STDC__ */ +' \ $file_to_fix > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file echo Fixed $file_to_fix @@ -183,10 +184,11 @@ if [ \! -z "$file_to_fix" ]; then \ #if defined (__GNUC__) || defined (__GNUG__)\ #include <sys/byteorder.h>\ -#else /* not __GNUC__ */\ +#else /* not __GNUC__ */ ' \ -e '/#endif[ ]*\/\* NETSWAP \*\//i\ -#endif /* not __GNUC__ */' \ +#endif /* not __GNUC__ */ +' \ $file_to_fix > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file echo Fixed $file_to_fix |