From d6b3cb10716b596b8133d286dbf583818c25ee9f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 31 Jul 1995 18:33:04 +0000 Subject: Avoid clobbering VxWorks drv/netif/if_med.h file From-SVN: r10209 --- gcc/fixincludes | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gcc') diff --git a/gcc/fixincludes b/gcc/fixincludes index e47713b..7ab7325 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -1072,6 +1072,18 @@ if [ -r ${LIB}/$file ]; then fi fi +# There is a similar problem with the VxWorks drv/netif/if_med.h file. +file=drv/netif/if_med.h +if [ -r ${LIB}/$file ]; then + if egrep 'Wind River' ${LIB}/$file > /dev/null; then + echo Fixing $file, overeager sed script + rm ${LIB}/$file + sed -e 's|//.*$||g' $file > ${LIB}/$file + chmod +w ${LIB}/$file 2>/dev/null + chmod a+r ${LIB}/$file 2>/dev/null + fi +fi + # Some IRIX header files contains the string "//" for file in elf_abi.h elf.h; do if [ -r ${LIB}/$file ]; then -- cgit v1.1