aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-04-10 11:06:52 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-04-10 11:06:52 +0100
commit5c1dd653a4f88528af7ceb37c215b75439211e64 (patch)
treef9b1c2e5464fd897e6a8f93b55baa3c87119fd67 /gcc-config
parenttests: add a test for bug #706318 (diff)
downloadgcc-config-5c1dd653a4f88528af7ceb37c215b75439211e64.tar.gz
gcc-config-5c1dd653a4f88528af7ceb37c215b75439211e64.tar.bz2
gcc-config-5c1dd653a4f88528af7ceb37c215b75439211e64.zip
gcc-config: add a TODO to use 'sort -V'
Was suggested by Jason A. Donenfeld and jthill. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'gcc-config')
-rwxr-xr-xgcc-config3
1 files changed, 2 insertions, 1 deletions
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