Browse Source

chore(CI): Set bash flags at start of scripts

reviewable/pr6526/r5
Anthony Bilinski 3 years ago
parent
commit
3c7ee98bc1
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 2
      buildscripts/build_ffmpeg.sh
  2. 6
      buildscripts/build_gdb_windows.sh
  3. 6
      buildscripts/build_gmp_windows.sh
  4. 5
      buildscripts/build_libexif.sh
  5. 4
      buildscripts/build_libexpat_windows.sh

2
buildscripts/build_ffmpeg.sh

@ -4,6 +4,8 @@
# Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com> # Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com>
# Copyright (c) 2021 by The qTox Project Contributors # Copyright (c) 2021 by The qTox Project Contributors
set -euo pipefail
usage() usage()
{ {
echo "Download and build ffmpeg for the windows cross compiling environment" echo "Download and build ffmpeg for the windows cross compiling environment"

6
buildscripts/build_gdb_windows.sh

@ -4,14 +4,14 @@
# Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com> # Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com>
# Copyright (c) 2021 by The qTox Project Contributors # Copyright (c) 2021 by The qTox Project Contributors
set -euo pipefail
usage() usage()
{ {
echo "Download and build gmp for windows" echo "Download and build gmp for windows"
echo "Usage: $0 --arch {win64|win32}" echo "Usage: $0 --arch {win64|win32}"
} }
set -euo pipefail
while (( $# > 0 )); do while (( $# > 0 )); do
case $1 in case $1 in
--arch) ARCH=$2; shift 2 ;; --arch) ARCH=$2; shift 2 ;;
@ -32,8 +32,6 @@ else
HOST="i686-w64-mingw32" HOST="i686-w64-mingw32"
fi fi
set -euo pipefail
"$(dirname $0)"/download/download_gdb.sh "$(dirname $0)"/download/download_gdb.sh
CFLAGS="-O2 -g0" ./configure --host="${HOST}" \ CFLAGS="-O2 -g0" ./configure --host="${HOST}" \

6
buildscripts/build_gmp_windows.sh

@ -4,14 +4,14 @@
# Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com> # Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com>
# Copyright (c) 2021 by The qTox Project Contributors # Copyright (c) 2021 by The qTox Project Contributors
set -euo pipefail
usage() usage()
{ {
echo "Download and build gmp for windows" echo "Download and build gmp for windows"
echo "Usage: $0 --arch {win64|win32}" echo "Usage: $0 --arch {win64|win32}"
} }
set -euo pipefail
while (( $# > 0 )); do while (( $# > 0 )); do
case $1 in case $1 in
--arch) ARCH=$2; shift 2 ;; --arch) ARCH=$2; shift 2 ;;
@ -32,8 +32,6 @@ else
HOST="i686-w64-mingw32" HOST="i686-w64-mingw32"
fi fi
set -euo pipefail
"$(dirname $0)"/download/download_gmp.sh "$(dirname $0)"/download/download_gmp.sh
# https://gmplib.org/list-archives/gmp-discuss/2020-July/006519.html # https://gmplib.org/list-archives/gmp-discuss/2020-July/006519.html

5
buildscripts/build_libexif.sh

@ -4,6 +4,8 @@
# Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com> # Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com>
# Copyright (c) 2021 by The qTox Project Contributors # Copyright (c) 2021 by The qTox Project Contributors
set -euo pipefail
usage() usage()
{ {
echo "Download and build libexif for the windows cross compiling environment" echo "Download and build libexif for the windows cross compiling environment"
@ -26,9 +28,6 @@ if [ "$ARCH" != "win32" ] && [ "$ARCH" != "win64" ]; then
exit 1 exit 1
fi fi
set -euo pipefail
"$(dirname $0)"/download/download_libexif.sh "$(dirname $0)"/download/download_libexif.sh
if [ "${ARCH}" == "win64" ]; then if [ "${ARCH}" == "win64" ]; then

4
buildscripts/build_libexpat_windows.sh

@ -4,14 +4,14 @@
# Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com> # Copyright (c) 2017-2021 Maxim Biro <nurupo.contributions@gmail.com>
# Copyright (c) 2021 by The qTox Project Contributors # Copyright (c) 2021 by The qTox Project Contributors
set -euo pipefail
usage() usage()
{ {
echo "Download and build libexpat for windows" echo "Download and build libexpat for windows"
echo "Usage: $0 --arch {win64|win32}" echo "Usage: $0 --arch {win64|win32}"
} }
set -euo pipefail
while (( $# > 0 )); do while (( $# > 0 )); do
case $1 in case $1 in
--arch) ARCH=$2; shift 2 ;; --arch) ARCH=$2; shift 2 ;;

Loading…
Cancel
Save