Roland McGrath 11487c
#!/bin/sh
Roland McGrath 11487c
Roland McGrath 11487c
for i in `grep ^* TODO  | awk '{ print $2 }'`
Roland McGrath 11487c
do
Roland McGrath 11487c
 if [ ! -f $i ]; then
Roland McGrath 11487c
   echo "$i referenced in the TODO, but isn't in CVS!"
Roland McGrath 11487c
 fi;
Roland McGrath 11487c
done
Roland McGrath 11487c
Roland McGrath 11487c
# sometimes dead stuff lingers in cvs, even though it's not in the specfile.
Roland McGrath 11487c
for i in *.patch
Roland McGrath 11487c
do
Roland McGrath 11487c
   for j in $(grep $i kernel.spec | grep Apply.*Patch | awk '{ print $2 }' | wc -l)
Roland McGrath 11487c
   do
Roland McGrath 11487c
     if [ "$j" = "0" ]; then
Roland McGrath 11487c
       echo $i is in CVS, but not applied in spec file.
Roland McGrath 11487c
       grep $i TODO | awk '{ print $2 " is also still in the TODO" }'
Roland McGrath 11487c
     fi
Roland McGrath 11487c
   done
Roland McGrath 11487c
done
Roland McGrath 11487c
Roland McGrath 11487c
#for i in `grep ApplyPatch kernel.spec | awk '{ print $2 }'`
Roland McGrath 11487c
#do
Roland McGrath 11487c
#	R=$(grep $i TODO)
Roland McGrath 11487c
#	echo "$i is in CVS, but not mentioned in the TODO!"
Roland McGrath 11487c
#done
Roland McGrath 11487c