Explorar o código

Script to verify that all autodoc files in the reference index is actually a still existing python module.

Ask Solem %!s(int64=15) %!d(string=hai) anos
pai
achega
4f4398d1a3
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      contrib/verify-reference-index.sh

+ 14 - 0
contrib/verify-reference-index.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+modules=$(grep "celery." docs/reference/index.rst | \
+            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
+
+exit $retval