diff options
author | phk <phk@FreeBSD.org> | 2000-08-21 14:42:48 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-08-21 14:42:48 +0000 |
commit | c907983705bdf33a0ce8f37d15b204e0702dfe41 (patch) | |
tree | ad1282f1a00bcede3782d546823fc11f014490db /tools | |
parent | 71be224373cc8ba422b7e8606dea3d70f519114e (diff) | |
download | FreeBSD-src-c907983705bdf33a0ce8f37d15b204e0702dfe41.zip FreeBSD-src-c907983705bdf33a0ce8f37d15b204e0702dfe41.tar.gz |
Make this work with current makefiles again.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/kerninclude/kerninclude.sh | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/tools/tools/kerninclude/kerninclude.sh b/tools/tools/kerninclude/kerninclude.sh index 45d4d1f..6bcff05 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 |