This commit is contained in:
Romain Vimont
2025-10-25 15:14:10 +02:00
parent f3d4fde15b
commit f348f069cc
8 changed files with 11 additions and 26 deletions

View File

@@ -1,10 +1,9 @@
#!/usr/bin/env bash
# This file is intended to be sourced by other scripts, not executed # This file is intended to be sourced by other scripts, not executed
#
process_args() { process_args() {
if [[ $# != 3 ]] if [[ $# != 3 ]]
then then
# <host>: win32 or win64 # <host>: linux, macos, win32 or win64
# <build_type>: native or cross # <build_type>: native or cross
# <link_type>: static or shared # <link_type>: static or shared
echo "Syntax: $0 <host> <build_type> <link_type>" >&2 echo "Syntax: $0 <host> <build_type> <link_type>" >&2
@@ -12,8 +11,8 @@ process_args() {
fi fi
HOST="$1" HOST="$1"
BUILD_TYPE="$2" # native or cross BUILD_TYPE="$2"
LINK_TYPE="$3" # static or shared LINK_TYPE="$3"
DIRNAME="$HOST-$BUILD_TYPE-$LINK_TYPE" DIRNAME="$HOST-$BUILD_TYPE-$LINK_TYPE"
if [[ "$BUILD_TYPE" != native && "$BUILD_TYPE" != cross ]] if [[ "$BUILD_TYPE" != native && "$BUILD_TYPE" != cross ]]

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init "$@"
cd "$DEPS_DIR"
. common
VERSION=36.0.0 VERSION=36.0.0
FILENAME=platform-tools_r$VERSION-linux.zip FILENAME=platform-tools_r$VERSION-linux.zip

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init "$@"
cd "$DEPS_DIR"
. common
VERSION=36.0.0 VERSION=36.0.0
FILENAME=platform-tools_r$VERSION-darwin.zip FILENAME=platform-tools_r$VERSION-darwin.zip

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init "$@"
cd "$DEPS_DIR"
. common
VERSION=36.0.0 VERSION=36.0.0
FILENAME=platform-tools_r$VERSION-win.zip FILENAME=platform-tools_r$VERSION-win.zip

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init
cd "$DEPS_DIR"
. common
process_args "$@" process_args "$@"
VERSION=1.5.0 VERSION=1.5.0

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init
cd "$DEPS_DIR"
. common
process_args "$@" process_args "$@"
VERSION=7.1.1 VERSION=7.1.1

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init
cd "$DEPS_DIR"
. common
process_args "$@" process_args "$@"
VERSION=1.0.29 VERSION=1.0.29

View File

@@ -1,8 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -ex set -ex
DEPS_DIR=$(dirname ${BASH_SOURCE[0]}) . $(dirname ${BASH_SOURCE[0]})/_init
cd "$DEPS_DIR"
. common
process_args "$@" process_args "$@"
VERSION=2.32.8 VERSION=2.32.8