Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
doc: cleanups in the scripts finding the missing references
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 9 Nov 2019 21:05:21 +0000 (22:05 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 10 Nov 2019 18:09:06 +0000 (19:09 +0100)
docs/Build.sh
docs/find-missing.py

index b934caa..8bb15b2 100755 (executable)
@@ -38,37 +38,7 @@ set +x
 perl -pe 's/(xlink:href="(?:http|.*\.html))/target="_top" $1/' \
      source/img/graphical-toc.svg > build/html/graphical-toc.svg
 
-echo "List of missing references:"
-for f in $( (grep '<name>' build/xml/msg_8h.xml; \
-             grep '<name>' build/xml/namespacesimgrid_1_1s4u.xml; \
-#           grep '<name>' build/xml/actor_8h.xml ; \
-#           grep '<name>' build/xml/barrier_8h.xml ; \
-            grep '<name>' build/xml/cond_8h.xml ; \
-            grep '<name>' build/xml/engine_8h.xml ; \
-#           grep '<name>' build/xml/host_8h.xml ; \
-#           grep '<name>' build/xml/link_8h.xml ; \
-#           grep '<name>' build/xml/mailbox_8h.xml ; \
-            grep '<name>' build/xml/msg_8h.xml ; \
-#           grep '<name>' build/xml/mutex_8h.xml ; \
-#           grep '<name>' build/xml/semaphore_8h.xml ; \
-#           grep '<name>' build/xml/vm_8h.xml ; \
-#           grep '<name>' build/xml/zone_8h.xml ; \
-             grep '<innerclass refid=' build/xml/namespacesimgrid_1_1s4u.xml ; \
-            ) | sed 's/<[^>]*>//g' | sort )
-do
-
-  if grep $f source/*rst | grep -q '.. doxygen[^::]*:: '"$f"'$' ||
-     grep $f source/*rst | grep -q '.. doxygen[^::]*:: simgrid::[^:]*::[^:]*::'"$f"'$'  ; then :   
-#    echo "$f documented"
-  else 
-    if grep -q $f ignored_symbols ; then : 
-#      echo "$f ignored" # not documented
-    else
-      echo "$f"
-    fi
-  fi
-done
-
+echo
 echo "Undocumented examples:"
 for ex in $( (cd .. ; \
               find examples/s4u/ -name '*.cpp'; \
index c944e85..d6f80db 100755 (executable)
@@ -92,7 +92,11 @@ def handle_python_module(fullname, englobing, elm):
 
 # Start the recursion on the provided Python modules
 for name in python_modules:
-    module = __import__(name)
+    try:
+        module = __import__(name)
+    except Exception:
+        print("Cannot import {}. Did you set PYTHONPATH=../lib accordingly?".format(name))
+        sys.exit(1)
     for sub in dir(module):
         if sub[0] == '_':
             continue