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 6A4EC1382C5 for ; Fri, 26 Feb 2021 09:36:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8338E0880; Fri, 26 Feb 2021 09:36:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 8A36DE087E for ; Fri, 26 Feb 2021 09:36:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 90F2634102F for ; Fri, 26 Feb 2021 09:36:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 450334F3 for ; Fri, 26 Feb 2021 09:36:35 +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: <1614329075.47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc.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: 47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc X-VCS-Branch: master Date: Fri, 26 Feb 2021 09:36:35 +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: 3cbc8394-686a-40e3-ada0-9908ac37dcbf X-Archives-Hash: b511d85a3ffff3c33b80cd5870e201de commit: 47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Feb 26 08:44:35 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Feb 26 08:44:35 2021 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=47ccdd7e gcc-config: clarify comment around profile version selection Signed-off-by: Sergei Trofimovich gentoo.org> gcc-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc-config b/gcc-config index 1a58c56..594c7d2 100755 --- a/gcc-config +++ b/gcc-config @@ -1080,12 +1080,12 @@ for x in "$@" ; do die "Could not locate profile #$x !" fi else - # User gave us a full HOST-gccver + # User gave us a full or x=${x##*/} if [[ ${DOIT} == "get_current_profile" && -z $(ls "${GCC_ENV_D}"/${x}-* 2>/dev/null) ]] || \ [[ ${DOIT} != "get_current_profile" && ! -f ${GCC_ENV_D}/${x} ]] then - # Maybe they just gave us a gccver ... + # Maybe they just gave us a . Infer . get_chost if [[ -f ${GCC_ENV_D}/${CHOST}-${x} ]] ; then x=${CHOST}-${x}