Skip to content

Commit

Permalink
Unify placement of set -e and set -x
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Nov 20, 2023
1 parent 16d9552 commit f4eeb7b
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/build-binutils.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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

Expand Down
3 changes: 3 additions & 0 deletions .github/scripts/build-gcc-libs.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/build-gcc.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/scripts/build-libgcc.sh
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/build-mingw-crt.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/build-mingw-headers.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/build-mingw.sh
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/scripts/install-libraries.sh
Original file line number Diff line number Diff line change
@@ -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}

Expand All @@ -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
Expand Down

0 comments on commit f4eeb7b

Please sign in to comment.