Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
57bb3d9d4e
commit
0aa38ddc4c
1 changed files with 11 additions and 7 deletions
|
@ -13,6 +13,9 @@
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
. tools/cpm/common.sh
|
. tools/cpm/common.sh
|
||||||
|
|
||||||
|
filter() {
|
||||||
|
TAGS=$(echo "$TAGS" | jq "[.[] | select(.name | test(\"$1\"; \"i\") | not)]") # vulkan
|
||||||
|
}
|
||||||
for PACKAGE in "$@"
|
for PACKAGE in "$@"
|
||||||
do
|
do
|
||||||
export PACKAGE
|
export PACKAGE
|
||||||
|
@ -36,16 +39,17 @@ do
|
||||||
|
|
||||||
# filter out some commonly known annoyances
|
# filter out some commonly known annoyances
|
||||||
# TODO add more
|
# TODO add more
|
||||||
TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("vulkan-sdk"; "i") | not)]') # vulkan
|
|
||||||
TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("yotta"; "i") | not)]') # mbedtls
|
|
||||||
|
|
||||||
# ignore betas/alphas
|
filter vulkan-sdk # vulkan
|
||||||
TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("alpha"; "i") | not)]')
|
filter yotta # mbedtls
|
||||||
TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("beta"; "i") | not)]')
|
|
||||||
TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("rc"; "i") | not)]')
|
# ignore betas/alphas (remove if needed)
|
||||||
|
filter alpha
|
||||||
|
filter beta
|
||||||
|
filter rc
|
||||||
|
|
||||||
# Add package-specific overrides here, e.g. here for fmt:
|
# Add package-specific overrides here, e.g. here for fmt:
|
||||||
[ "$PACKAGE" = fmt ] && TAGS=$(echo "$TAGS" | jq '[.[] | select(.name | test("v0.11"; "i") | not)]')
|
[ "$PACKAGE" = fmt ] && filter v0.11
|
||||||
|
|
||||||
LATEST=$(echo "$TAGS" | jq -r '.[0].name')
|
LATEST=$(echo "$TAGS" | jq -r '.[0].name')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue