Unstable sorting means confusing diffs if you're checking in the generated
files. (Which I shouldn't be doing, but getting this bundle of random scripts
into Android's build system isn't going to be easy...)
---
scripts/genconfig.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From bc62f91ed01f899c481cc989593e8240edd0b663 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Wed, 25 May 2016 14:43:56 -0700
Subject: [PATCH] Stabilize another sort.
Unstable sorting means confusing diffs if you're checking in the generated
files. (Which I shouldn't be doing, but getting this bundle of random scripts
into Android's build system isn't going to be easy...)
---
scripts/genconfig.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/genconfig.sh b/scripts/genconfig.sh
index e4c2aad..c55e7d1 100755
--- a/scripts/genconfig.sh
+++ b/scripts/genconfig.sh
@@ -102,7 +102,7 @@ EOF
genconfig()
{
# Reverse sort puts posix first, examples last.
- for j in $(ls toys/*/README | sort -r)
+ for j in $(ls toys/*/README | sort -s -r)
do
DIR="$(dirname "$j")"
--
2.8.0.rc3.226.g39d4020
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net