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 1C4B01382C5 for ; Fri, 26 Feb 2021 09:36:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D826E0887; Fri, 26 Feb 2021 09:36:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 265F0E0887 for ; Fri, 26 Feb 2021 09:36:38 +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 4865F341033 for ; Fri, 26 Feb 2021 09:36:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 57B21530 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: <1614329436.c952a087e482b7dfe067172754ce832f78aa8c80.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: c952a087e482b7dfe067172754ce832f78aa8c80 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: 166c0bb2-93c2-4c0b-958a-14fd35cde975 X-Archives-Hash: a065515305605c8ed3e5e8687f89ab21 commit: c952a087e482b7dfe067172754ce832f78aa8c80 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Feb 26 08:50:36 2021 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Feb 26 08:50:36 2021 +0000 URL: https://gitweb.gentoo.org/proj/gcc-config.git/commit/?id=c952a087 gcc-config: provide 'gcc-config --get-current-profile [CTARGET]' example 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 594c7d2..e8e3d58 100755 --- a/gcc-config +++ b/gcc-config @@ -45,6 +45,7 @@ GENTOO_LIBDIR="@GENTOO_LIBDIR@" usage() { cat <<-EOF Usage: gcc-config [options] [CC Profile] + gcc-config [options] --get-current-profile [CTARGET] Change the current compiler profile, or give info about profiles. Options: @@ -1080,7 +1081,7 @@ for x in "$@" ; do die "Could not locate profile #$x !" fi else - # User gave us a full or + # 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} ]]