Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 48 lines (42 sloc) 1.302 kb
#!/bin/bash
PACKAGE="$1"
SKIP_PACKAGES="$PACKAGE tests management urls"
SKIP_FILES="celery.__compat__.rst
celery.backends.pyredis.rst
celery.bin.rst
celery.bin.celeryd_detach.rst
celery.bin.celeryctl.rst
celery.concurrency.processes._win.rst
celery.contrib.rst
celery.contrib.bundles.rst
celery.local.rst
celery.app.base.rst
celery.apps.rst
celery.backends.database.a805d4bd.rst
celery.backends.database.dfd042c7.rst
celery.canvas.rst
celery.utils.encoding.rst"
modules=$(find "$PACKAGE" -name "*.py")
failed=0
for module in $modules; do
dotted=$(echo $module | sed 's/\//\./g')
name=${dotted%.__init__.py}
name=${name%.py}
rst=$name.rst
skip=0
for skip_package in $SKIP_PACKAGES; do
[ $(echo "$name" | cut -d. -f 2) == "$skip_package" ] && skip=1
done
for skip_file in $SKIP_FILES; do
[ "$skip_file" == "$rst" ] && skip=1
done
if [ $skip -eq 0 ]; then
if [ ! -f "docs/reference/$rst" ]; then
if [ ! -f "docs/internals/reference/$rst" ]; then
echo $rst :: FAIL
failed=1
fi
fi
fi
done
exit $failed
Jump to Line
Something went wrong with that request. Please try again.