commit: 5c1dd653a4f88528af7ceb37c215b75439211e64
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 10 10:06:52 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Apr 10 10:06:52 2020 +0000
URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=5c1dd653
gcc-config: add a TODO to use 'sort -V'
Was suggested by Jason A. Donenfeld and jthill.
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
gcc-config | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc-config b/gcc-config
index f03a46a..beeb82a 100755
--- a/gcc-config
+++ b/gcc-config
@@ -74,7 +74,8 @@ usage() {
# Normalizer:
# echo "hello-world-1.2.3.444.56778" | ${SED} -e 's/[0-9]\+/0000&/g' |
${SED} -e 's/0*\([0-9]\{4\}\)/\1/g'
# hello-world-0001.0002.0003.0444.56778
-# That way we can have 9.0 < 10.0 roder.
+# That way we can have 9.0 < 10.0 order.
+# TODO: explore how portable 'sort -V' is and try using that instead.
version_sorted_paths() {
local p mangled_v
for p in "$@"; do