From 3fcca34fc436367aea1b814fe86f223edfe8cd3e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 19 Nov 2018 15:22:37 +0100 Subject: [PATCH] Stabilize output by sorting. Should improve framagit issue simgrid/simgrid#4. --- tools/doxygen/list_routing_models_examples.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/doxygen/list_routing_models_examples.sh b/tools/doxygen/list_routing_models_examples.sh index 42e529b11c..a239337548 100755 --- a/tools/doxygen/list_routing_models_examples.sh +++ b/tools/doxygen/list_routing_models_examples.sh @@ -2,11 +2,13 @@ cd $(dirname $0)/../../ +export LC_ALL=C + # -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" +grep -R -l "$1" examples/ --include "*.xml" | sort exit 0 -- 2.20.1