Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Stabilize output by sorting.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 19 Nov 2018 14:22:37 +0000 (15:22 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 21 Nov 2018 16:03:29 +0000 (17:03 +0100)
Should improve framagit issue simgrid/simgrid#4.

tools/doxygen/list_routing_models_examples.sh

index 42e529b..a239337 100755 (executable)
@@ -2,11 +2,13 @@
 
 cd $(dirname $0)/../../
 
 
 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"
 # -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
 
 exit 0