ref: 59fd8e09d75fc7b279a7e4b20fcd0fb7d92e8122
parent: 874cce9c8746da398c57e021ea6ee740ca71e1cb
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed May 16 16:39:05 EDT 2018
Make more stable mkdep.sh This patch fixes the locale used by sort and it also uses the -s option of sort.
--- a/mkdep.sh
+++ b/mkdep.sh
@@ -10,4 +10,4 @@
dir=`dirname $i | sed 's,/*$,,'`
sed -n '/#include "/ s,#include "\(.*\)",'"$file: $dir"'/\1,p' $i
done |
-sort) > $$.tmp && mv $$.tmp Makefile
+LC_ALL=C sort -s) > $$.tmp && mv $$.tmp Makefile