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