From 47ccdd7e2e51d88c439b347c8e9bc9d1c4c20dcc Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 26 Feb 2021 08:44:35 +0000 Subject: gcc-config: clarify comment around profile version selection Signed-off-by: Sergei Trofimovich --- 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} -- cgit v1.2.3-65-gdbad