09c2704928
This is how we'll handle systems where the cert bundle and cert directory is stored where mbedtls doesn't expect it. Also update tpt-libs to get new curl and mbedtls.
25 lines
529 B
Bash
Executable File
25 lines
529 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
shopt -s globstar
|
|
IFS=$'\n\t'
|
|
|
|
if [[ -z ${1-} ]] || [[ -z ${2-} ]] || [[ -z ${3-} ]]; then
|
|
>&2 echo "usage: ./update-wraps.sh OWNER REPO TAG"
|
|
exit 1
|
|
fi
|
|
|
|
owner=$1
|
|
repo=$2
|
|
tag=$3
|
|
|
|
set +e
|
|
rm *.wrap > /dev/null 2>&1
|
|
set -e
|
|
for wrap in $(curl -sL "https://api.github.com/repos/$owner/$repo/releases/tags/$tag" | jq -r '.assets[].browser_download_url | select(endswith("wrap"))'); do
|
|
echo $wrap
|
|
curl -sLO $wrap
|
|
done
|
|
|
|
sed -i "s|tpt_libs_vtag = '[^']*'|tpt_libs_vtag = '$tag'|g" ../meson.build
|