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