Crude conceptual check.
if [ "$(find debian/patches/ -type f -not -name series | wc -l)" !=
"$(wc -l < debian/patches/series)" ]
then
echo "Contents of debian/patches/series does not match number of
patches in debian/patches"
fi
Slightly more complicated by series.foo, comments, etc. Some of which may not need support
Crude conceptual check.
Slightly more complicated by series.foo, comments, etc. Some of which may not need support