From c66fd3c2675ac0e5c68a7bd2fac26f43d07192f2 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 21 Jun 2017 14:57:28 -0700 Subject: crossgcc: Rename print_stable to print_supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That's what the option is called in the help text. Not sure where the divergence came from, so let's fix it. Change-Id: I621aa203da2d314b93de665dbdadbe4a43725375 Signed-off-by: Stefan Reinauer Reviewed-on: https://review.coreboot.org/20301 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paul Menzel Reviewed-by: Nico Huber --- util/crossgcc/buildgcc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index f232e83d5f..a5d4159997 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -751,8 +751,8 @@ build_CMAKE() { normalize_dirs } -print_stable() { - case "$PRINTSTABLE" in +print_supported() { + case "$PRINTSUPPORTED" in AUTOCONF|autoconf) printf "%s\n" "$GCC_AUTOCONF_VERSION";; BINUTILS|binutils) printf "%s\n" "$BINUTILS_VERSION";; CLANG|clang) printf "%s\n" "$CLANG_VERSION";; @@ -766,7 +766,7 @@ print_stable() { MPFR|mpfr) printf "%s\n" "$MPFR_VERSION";; PYTHON|python) printf "%s\n" "$PYTHON_VERSION";; MAKE|make) printf "%s\n" "$MAKE_VERSION";; - *) printf "Unknown tool %s\n" "$PRINTSTABLE";; + *) printf "Unknown tool %s\n" "$PRINTSUPPORTED";; esac } @@ -810,7 +810,7 @@ while true ; do -P|--package) shift; PACKAGE="$1"; shift;; -S|--scripting) shift; SKIPPYTHON=0;; -y|--ccache) shift; USECCACHE=1;; - -s|--supported) shift; PRINTSTABLE="$1"; shift;; + -s|--supported) shift; PRINTSUPPORTED="$1"; shift;; -u|--urls) shift; printf "%s\n" "$ALL_ARCHIVES"; exit 0;; -n|--nocolor) shift; \ unset red RED green GREEN blue BLUE cyan CYAN NC;; @@ -825,8 +825,8 @@ if [ $# -gt 0 ]; then exit 1 fi -if [ -n "$PRINTSTABLE" ]; then - print_stable +if [ -n "$PRINTSUPPORTED" ]; then + print_supported exit 0 fi -- cgit v1.2.3