From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9B335138350 for ; Fri, 10 Apr 2020 10:08:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 83B01E0966; Fri, 10 Apr 2020 10:08:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 68BE8E0966 for ; Fri, 10 Apr 2020 10:08:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E706834EF20 for ; Fri, 10 Apr 2020 10:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5F0A79D for ; Fri, 10 Apr 2020 10:08:53 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1586513212.5c1dd653a4f88528af7ceb37c215b75439211e64.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-config:master commit in: / X-VCS-Repository: proj/gcc-config X-VCS-Files: gcc-config X-VCS-Directories: / X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 5c1dd653a4f88528af7ceb37c215b75439211e64 X-VCS-Branch: master Date: Fri, 10 Apr 2020 10:08:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fc64bbaa-3435-449f-9904-4413327f3a01 X-Archives-Hash: 50ac12bcc8e9eb4cd9cf18ed2d994628 commit: 5c1dd653a4f88528af7ceb37c215b75439211e64 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Apr 10 10:06:52 2020 +0000 Commit: Sergei Trofimovich gentoo 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 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