This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/subprojects/update-wraps.sh
Tamás Bálint Misius 513d2cae3e
Update tpt-libs
Also restructure meson.build and the ghactions workflow a bit, and enable -ffunction-sections and -fdata-sections.

Note that starcatcher uploads have not been tested and most likely don't work.
2022-09-03 07:01:21 +02:00

20 lines
405 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
shopt -s globstar
IFS=$'\n\t'
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