11,10
This commit is contained in:
parent
94956d1c36
commit
b5bcbf845e
1 changed files with 19 additions and 9 deletions
16
py.cpypy.sh
16
py.cpypy.sh
|
@ -12,14 +12,24 @@ url="https://github.com\
|
||||||
|
|
||||||
rm --force --recursive "${root}"
|
rm --force --recursive "${root}"
|
||||||
mkdir --parents "${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}" |
|
for url in $(jq -r ".. | objects | .url?" "${path}"); do
|
||||||
grep "\(cpython-3\.12\.6\|pypy3\.10\)"); do
|
case "$(basename "${url}")" in
|
||||||
|
cpython-3.12* |
|
||||||
|
cpython-3.11* |
|
||||||
|
cpython-3.10* |
|
||||||
|
pypy3.10*)
|
||||||
file="$(basename "${url}" | sed "s|%2B|+|g")"
|
file="$(basename "${url}" | sed "s|%2B|+|g")"
|
||||||
dir="$(dirname "${url}")"
|
dir="$(dirname "${url}")"
|
||||||
date="$(basename "${dir}")"
|
date="$(basename "${dir}")"
|
||||||
path="${root}/${date}"
|
path="${root}/${date}"
|
||||||
mkdir --parents "${path}"
|
mkdir --parents "${path}"
|
||||||
wget --continue --output-document "${path}/${file}" "${url}"
|
wget --continue --output-document "${path}/${file}" "${url}"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue