diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-04-30 16:00:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-04-30 16:00:15 +0000 |
commit | d096c372761b6e5ed57b75c90757594acbf7705f (patch) | |
tree | ab7c8ecd62cb0aec46e396115023257a722f367a /gcc | |
parent | a3d6ace67ad885e05ad3f27f5c844a5e0c005089 (diff) | |
download | gcc-d096c372761b6e5ed57b75c90757594acbf7705f.zip gcc-d096c372761b6e5ed57b75c90757594acbf7705f.tar.gz gcc-d096c372761b6e5ed57b75c90757594acbf7705f.tar.bz2 |
Fix #endif comments
From-SVN: r4286
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index 8de7a60..6121ff9 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -1021,6 +1021,17 @@ then ln -s ${INPUT}/multimedia/audio_hdr.h ${LIB}/multimedia 2>/dev/null fi +# These files on Ultrix 4.2 put comments around instances of #endif +# __mips. When the sed expression turns that into #endif /* __mips */ +# the comment ends prematurely. +for file in sys/audit.h sys/signal.h; do + if [ -r ${LIB}/${file} ]; then + echo Fixing $file, early comment termination + sed -e 's|^#endif /\*.*\*/|#endif|g' ${LIB}/${file} > ${LIB}/${file}.sed + rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file + fi +done + echo 'Removing unneeded directories:' cd $LIB files=`find . -type d -print | sort -r` |