kombu/contrib/release/verify-reference-index.sh

20 lines
428 B
Bash
Raw Normal View History

2010-10-27 07:41:35 +00:00
#!/bin/bash
verify_index() {
modules=$(grep "kombu." "$1" | \
perl -ple's/^\s*|\s*$//g;s{\.}{/}g;')
retval=0
for module in $modules; do
if [ ! -f "$module.py" ]; then
if [ ! -f "$module/__init__.py" ]; then
echo "Outdated reference: $module"
retval=1
fi
fi
done
return $retval
}
verify_index docs/reference/index.rst