From 861f5e53c87fd99f8628635597a4d440d75b61cb Mon Sep 17 00:00:00 2001 From: Kiko Fernandez-Reyes Date: Fri, 13 Dec 2024 11:01:39 +0100 Subject: [PATCH] otp: ignore comments in link and vsn files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lukas Backström (FKA Larsson) --- otp_build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otp_build b/otp_build index 47803a09ed8..429f278e556 100755 --- a/otp_build +++ b/otp_build @@ -1061,10 +1061,10 @@ do_download_gdb_tools () set_common_vars() { GDB_TOOLS_INSTALL_PATH="$ERL_TOP/erts/etc/unix/gdb-tools" GDB_TOOLS_VSN_PATH="$ERL_TOP/make" - GDB_REPO=$(cat "$GDB_TOOLS_VSN_PATH/gdb_tools_link" | tail -n1) + GDB_REPO=$(cat "$GDB_TOOLS_VSN_PATH/gdb_tools_link" | grep -v "^//") # Version of gdb-tools to download - GDB_TOOLS_VSN=$(cat "$GDB_TOOLS_VSN_PATH/gdb_tools_vsn" | tail -n1) + GDB_TOOLS_VSN=$(cat "$GDB_TOOLS_VSN_PATH/gdb_tools_vsn" | grep -v "^//") # SHASUM_FORMAT has values: sha256sum, sha1sum, shasum SHASUM_FORMAT=