Article View: gnu.gcc.bug
Article #1961gcc 1.31 fixincludes enhancement request w/patch
From: Mark D. Baushke
Date: Tue, 22 Nov 1988 17:23
Date: Tue, 22 Nov 1988 17:23
42 lines
1892 bytes
1892 bytes
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
Technical Details
Message-ID:
<8811221723.AA11318@amadeus.silvlis.com>Path:
arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!silvlis.com!mdbShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!silvlis.com!mdb From: mdb@silvlis.com (Mark D. Baushke) Newsgroups: gnu.gcc.bug Subject: gcc 1.31 fixincludes enhancement request w/patch Message-ID: <8811221723.AA11318@amadeus.silvlis.com> Date: 22 Nov 88 17:23:22 GMT Article-I.D.: amadeus.8811221723.AA11318 Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: Silvar-Lisco, 1080 Marsh Road, Menlo Park, CA 94025-1053 Lines: 42