Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[Doc] Next major revision of the documentation
[simgrid.git] / tools / doxygen / list_routing_models_examples.sh
diff --git a/tools/doxygen/list_routing_models_examples.sh b/tools/doxygen/list_routing_models_examples.sh
new file mode 100755 (executable)
index 0000000..7bc3b5e
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+cd $(dirname $0)/../../
+
+# -R -- we want to search recursively
+# -l -- only filenames, nothing else
+# $1 -- argument to this script, name of the routing model (e.g., "Floyd")
+# .  -- search in the examples folder and search EVERYTHING
+# --include -- but only include results that end in ".xml" 
+grep -R -l "$1" examples/ --include "*.xml"
+
+exit 0