From b5bcbf845ee5a6b51c002cb120098a7a72ec8b85 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 29 Sep 2024 15:26:23 +0200 Subject: [PATCH] 11,10 --- py.cpypy.sh | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/py.cpypy.sh b/py.cpypy.sh index 6775efb..6d7f5bf 100755 --- a/py.cpypy.sh +++ b/py.cpypy.sh @@ -12,14 +12,24 @@ url="https://github.com\ rm --force --recursive "${root}" mkdir --parents "${root}" -wget --continue --output-document "${path}" "${url}" +wget --continue --output-document "${path}" "${url}" 2>/dev/null +echo +echo "${path}" +cat "${path}" -for url in $(jq -r ".. | objects | .url?" "${path}" | - grep "\(cpython-3\.12\.6\|pypy3\.10\)"); do - file="$(basename "${url}" | sed "s|%2B|+|g")" - dir="$(dirname "${url}")" - date="$(basename "${dir}")" - path="${root}/${date}" - mkdir --parents "${path}" - wget --continue --output-document "${path}/${file}" "${url}" +for url in $(jq -r ".. | objects | .url?" "${path}"); do + case "$(basename "${url}")" in + cpython-3.12* | + cpython-3.11* | + cpython-3.10* | + pypy3.10*) + file="$(basename "${url}" | sed "s|%2B|+|g")" + dir="$(dirname "${url}")" + date="$(basename "${dir}")" + path="${root}/${date}" + mkdir --parents "${path}" + wget --continue --output-document "${path}/${file}" "${url}" + ;; + *) ;; + esac done