From f4eeb7bfed88ca381041a580fbb5e70d1956a6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Barto=C5=88?= Date: Mon, 20 Nov 2023 09:58:11 +0100 Subject: [PATCH] Unify placement of `set -e` and `set -x` --- .github/scripts/build-binutils.sh | 6 +++--- .github/scripts/build-gcc-libs.sh | 3 +++ .github/scripts/build-gcc.sh | 6 +++--- .github/scripts/build-libgcc.sh | 3 +++ .github/scripts/build-mingw-crt.sh | 6 +++--- .github/scripts/build-mingw-headers.sh | 6 +++--- .github/scripts/build-mingw.sh | 6 +++--- .github/scripts/install-libraries.sh | 6 +++--- 8 files changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/scripts/build-binutils.sh b/.github/scripts/build-binutils.sh index f789dd10d..40179faf5 100755 --- a/.github/scripts/build-binutils.sh +++ b/.github/scripts/build-binutils.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + BINUTILS_VERSION=${BINUTILS_VERSION:-binutils-master} TARGET=${TARGET:-aarch64-w64-mingw32} @@ -9,9 +12,6 @@ INSTALL_PATH=${INSTALL_PATH:-~/cross} export PATH=$INSTALL_PATH/bin:$PATH -set -e # exit on error -set -x # echo on - mkdir -p $BUILD_PATH/binutils cd $BUILD_PATH/binutils diff --git a/.github/scripts/build-gcc-libs.sh b/.github/scripts/build-gcc-libs.sh index 7e3612b71..3e67e5336 100755 --- a/.github/scripts/build-gcc-libs.sh +++ b/.github/scripts/build-gcc-libs.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + TARGET=${TARGET:-aarch64-w64-mingw32} BUILD_PATH=${BUILD_PATH:-$PWD/build-$TARGET} BUILD_MAKE_OPTIONS=-j$(nproc) diff --git a/.github/scripts/build-gcc.sh b/.github/scripts/build-gcc.sh index 31ae1301c..af9921367 100755 --- a/.github/scripts/build-gcc.sh +++ b/.github/scripts/build-gcc.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + GCC_VERSION=${GCC_VERSION:-gcc-master} TARGET=${TARGET:-aarch64-w64-mingw32} @@ -9,9 +12,6 @@ INSTALL_PATH=${INSTALL_PATH:-~/cross} export PATH=$INSTALL_PATH/bin:$PATH -set -e # exit on error -set -x # echo on - mkdir -p $BUILD_PATH/gcc cd $BUILD_PATH/gcc diff --git a/.github/scripts/build-libgcc.sh b/.github/scripts/build-libgcc.sh index 9345d9ec2..1db6270a0 100755 --- a/.github/scripts/build-libgcc.sh +++ b/.github/scripts/build-libgcc.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + TARGET=${TARGET:-aarch64-w64-mingw32} BUILD_PATH=${BUILD_PATH:-$PWD/build-$TARGET} BUILD_MAKE_OPTIONS=-j$(nproc) diff --git a/.github/scripts/build-mingw-crt.sh b/.github/scripts/build-mingw-crt.sh index 8d46c0fe6..90778fbbe 100755 --- a/.github/scripts/build-mingw-crt.sh +++ b/.github/scripts/build-mingw-crt.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + MINGW_VERSION=${MINGW_VERSION:-mingw-w64-master} TARGET=${TARGET:-aarch64-w64-mingw32} @@ -28,9 +31,6 @@ esac export PATH=$INSTALL_PATH/bin:$PATH -set -e # exit on error -set -x # echo on - mkdir -p $BUILD_PATH/mingw cd $BUILD_PATH/mingw diff --git a/.github/scripts/build-mingw-headers.sh b/.github/scripts/build-mingw-headers.sh index 13a8c10ff..6cf29cedc 100755 --- a/.github/scripts/build-mingw-headers.sh +++ b/.github/scripts/build-mingw-headers.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + MINGW_VERSION=${MINGW_VERSION:-mingw-w64-master} TARGET=${TARGET:-aarch64-w64-mingw32} @@ -19,9 +22,6 @@ esac export PATH=$INSTALL_PATH/bin:$PATH -set -e # exit on error -set -x # echo on - mkdir -p $BUILD_PATH/mingw-headers cd $BUILD_PATH/mingw-headers diff --git a/.github/scripts/build-mingw.sh b/.github/scripts/build-mingw.sh index 9a8389807..972b0909f 100755 --- a/.github/scripts/build-mingw.sh +++ b/.github/scripts/build-mingw.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + MINGW_VERSION=${MINGW_VERSION:-mingw-w64-master} TARGET=${TARGET:-aarch64-w64-mingw32} @@ -28,9 +31,6 @@ esac export PATH=$INSTALL_PATH/bin:$PATH -set -e # exit on error -set -x # echo on - cd $BUILD_PATH/mingw echo "::group::Configure MinGW libraries" diff --git a/.github/scripts/install-libraries.sh b/.github/scripts/install-libraries.sh index 57077457f..a482a028b 100755 --- a/.github/scripts/install-libraries.sh +++ b/.github/scripts/install-libraries.sh @@ -1,5 +1,8 @@ #!/bin/bash +set -e # exit on error +set -x # echo on + BINUTILS_VERSION=${BINUTILS_VERSION:-binutils-master} GCC_VERSION=${GCC_VERSION:-gcc-master} @@ -10,9 +13,6 @@ MPC_VERSION=mpc-1.2.1 ISL_VERSION=isl-0.24 WGET_OPTIONS="-nc -P downloads" -set -e # exit on error -set -x # echo on - echo "::group::Install libraries" # Download packages