wok diff linux/stuff/check_modules.sh @ rev 3701
Upgrade: freeglut (2.4.0 to 2.6.0-rc1)
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Fri Jul 17 12:22:07 2009 +0000 (2009-07-17) |
parents | |
children | e8d2c0b1111b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/linux/stuff/check_modules.sh Fri Jul 17 12:22:07 2009 +0000 1.3 @@ -0,0 +1,43 @@ 1.4 +#!/bin/sh 1.5 +# Echo any module in kernel .config that's not added to one of linux-* pkgs 1.6 +# 2009/06/18 <jozee@slitaz.org> - GNU General Public License. 1.7 +# 1.8 + 1.9 + VERSION=$1 1.10 + WOK=$2 1.11 + src=$WOK/linux/linux-$VERSION 1.12 + cd $src 1.13 + mkdir -p ../stuff/tmp 1.14 + rm -f ../stuff/tmp/* # clean up 1.15 + # create a packaged modules list 1.16 + cat ../stuff/modules-"$VERSION".list >> ../stuff/tmp/pkgs-modules-"$VERSION".list 1.17 + 1.18 + for i in $(cd $WOK; ls -d linux-*) 1.19 + do 1.20 + tazpath="taz/$i-$VERSION" 1.21 + for j in $(cat $WOK/$i/$tazpath/files.list | grep ".ko.gz") 1.22 + do 1.23 + basename $j >> ../stuff/tmp/pkgs-modules-"$VERSION".list 1.24 + done 1.25 + done 1.26 + # get the original list in .config 1.27 + for i in $(find $_pkg -iname "*.ko.gz") 1.28 + do 1.29 + basename $i >> ../stuff/tmp/originial-"$VERSION".list 1.30 + done 1.31 + # compare original .config and pkged modules 1.32 + for i in $(cat ../stuff/tmp/originial-$VERSION.list) 1.33 + do 1.34 + if ! grep -qs "$i" ../stuff/tmp/pkgs-modules-"$VERSION".list ; then 1.35 + modpath=`find $_pkg -iname "$i"` 1.36 + echo "$i : $modpath" >> ../stuff/tmp/unpackaged-modules-"$VERSION".list; 1.37 + fi 1.38 + done 1.39 + if [ -f ../stuff/tmp/unpackaged-modules-"$VERSION".list ]; then 1.40 + echo "======================================================================" 1.41 + echo " Some modules selected in .config were not categorized in linux-* pkgs" 1.42 + echo "Check linux/stuff/tmp/unpackaged-modules-$VERSION.list to see" 1.43 + cat ../stuff/tmp/unpackaged-modules-$VERSION.list 1.44 + else 1.45 + rm -r ../stuff/tmp 1.46 + fi