From b5f2019a23a27d34feaddf0182e5963de7b9bb29 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 24 May 2018 17:59:29 +0200 Subject: Strip toolchain name (in any) from predictable name symlink This is used to get predictable install script names. --- buildos | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/buildos b/buildos index fb5f85c..012869b 100755 --- a/buildos +++ b/buildos @@ -526,7 +526,10 @@ function toolchain_fetch () # declare -g "${tp}toolchain_ver=$tv" echo "$tv" >"$tr/version" else - l="$(sed -n -re "s/^(.+)-$tv(.*)$/\1\2/p" <<<"$f")" + # For files other that build2-toolchain we expect the version component to + # be in the [-] form, for example 1.2.3-stage. + # + l="$(sed -n -re "s/^(.+)-$tv(-$tn)?(.*)$/\1\3/p" <<<"$f")" fi if [ -z "$l" ]; then -- cgit v1.1