[gnu.gcc.bug] gcc 1.31 fixincludes enhancement request w/patch

mdb@silvlis.com (Mark D. Baushke) (11/23/88)

Index: gcc 1.31, SunOS 3.4, Sun 3/50

The fixincludes script finds a number of files such as:

	/usr/include/stdio.h
	/usr/include/mon/keyboard.h
	/usr/include/sundev/arreg.h
	/usr/include/sundev/kbd.h
	/usr/include/sunwindow/win_input.h
	/usr/include/X/Xkeyboard.h (from X 10.4)

for which no changes are made (they are not needed since they only
match the "CTRL" pattern in the egrep but are not modified by any of
the ex commands).

I believe that fixincludes should be modified to do a cmp between the
/usr/include and gcc-include versions and delete from the gcc-include
tree any files that have not actually been modified.

Suggested fix:

*** gcc-1.31/fixincludes-dist	Mon Nov 21 23:58:22 1988
--- gcc-1.31/fixincludes	Tue Nov 22 09:19:56 1988
***************
*** 31,34 ****
--- 31,39 ----
        wq
  EOF
+       if cmp $file ${LIB}/$file >/dev/null 2>&1; then
+          echo No fixes were made to $file.
+          echo Deleteing ${LIB}/$file
+          rm ${LIB}/$file
+       fi
      fi
    fi


------------------------------------------------------------------------------
Mark D. Baushke                 Internet:    mdb%silvlis.com@sun.com
Silvar-Lisco, Inc.              Nameservers: mdb@silvlis.com
1080 Marsh Road                 Usenet:      {pyramid,sun}!silvlis!mdb
Menlo Park, CA 94025-1053       Telephone:   +1 415 853-6411 / +1 415 969-8328