mirror of https://github.com/celery/kombu.git
20 lines
428 B
Bash
Executable File
20 lines
428 B
Bash
Executable File
#!/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
|