diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1995-07-31 18:33:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1995-07-31 18:33:04 +0000 |
commit | d6b3cb10716b596b8133d286dbf583818c25ee9f (patch) | |
tree | 05a6b00c02b2ac501167d939ff922fa3737719a3 /gcc/fixincludes | |
parent | ae38d0798c15adb71f73a2d0cec66e3ad0365627 (diff) | |
download | gcc-d6b3cb10716b596b8133d286dbf583818c25ee9f.zip gcc-d6b3cb10716b596b8133d286dbf583818c25ee9f.tar.gz gcc-d6b3cb10716b596b8133d286dbf583818c25ee9f.tar.bz2 |
Avoid clobbering VxWorks drv/netif/if_med.h file
From-SVN: r10209
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-x | gcc/fixincludes | 12 |
1 files changed, 12 insertions, 0 deletions
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 |