From 8b2a388086ac89d67768a6323c4144960022489b Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Mon, 21 Aug 2000 14:42:48 +0000 Subject: [PATCH] Make this work with current makefiles again. --- tools/tools/kerninclude/kerninclude.sh | 43 +++++++++++++------------- 1 file changed, 21 insertions(+), 22 deletions(-) diff --git a/tools/tools/kerninclude/kerninclude.sh b/tools/tools/kerninclude/kerninclude.sh index 45d4d1f0bc41..6bcff05edbce 100644 --- a/tools/tools/kerninclude/kerninclude.sh +++ b/tools/tools/kerninclude/kerninclude.sh @@ -48,6 +48,9 @@ kernels="LINT GENERIC GENERIC98" # Which includes you want to check includes="*/*.h i386/*/*.h dev/*/*.h cam/scsi/*.h ufs/*/*.h pc98/*/*.h netatm/*/*.h i4b/*/*.h" +NO_MODULES=yes +export NO_MODULES + check_it () { if [ -f ::$2 ] ; then @@ -122,7 +125,7 @@ check_it () if [ $m1 != $m2 ] ; then echo " MD5 changed" - exit 0 + #exit 0 fi } @@ -144,25 +147,17 @@ if $init ; then ls | grep -v CVS | xargs rm -rf ) - ( echo "Configuring kernels" - for d in i386/conf pc98/conf - do - ( - cd $d - for i in $kernels - do - if [ ! -f $i ] ; then - continue - fi - if [ $i = "LINT" ] ; then - config -r -p $i - else - config -r $i - fi - done - ) - done + ( + cd i386/conf + perl ./makeLINT.pl < NOTES > LINT + config -r -p LINT + config -r GENERIC + ) + ( + cd pc98/conf + cp -f GENERIC GENERIC98 + config -r GENERIC98 ) for i in $kernels @@ -259,12 +254,16 @@ do exit 0 fi echo -n " ($src)" - echo " BINGO!" echo "$incl $src" >> _incl ( cd compile/LINT - grep -v "#[ ]*include[ ]*.$incl." $src > ${src}_ - mv ${src}_ $src + if [ -f $src ] ; then + grep -v "#[ ]*include[ ]*.$incl." $src > ${src}_ + mv ${src}_ $src + echo " BINGO!" + else + echo " BINGO!, but not in LINT" + fi ) ) done