mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore(CI): Set bash flags at start of scripts
This commit is contained in:
parent
69514319fd
commit
3c7ee98bc1
@ -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"
|
||||||
|
@ -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}" \
|
||||||
|
@ -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
|
||||||
|
@ -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,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…
x
Reference in New Issue
Block a user