Compare commits
7 commits
713883470f
...
72f4d4fd18
Author | SHA1 | Date | |
---|---|---|---|
72f4d4fd18 | |||
31eb6e63bf | |||
3de52a3dd4 | |||
0b98aaa996 | |||
fe85a9b527 | |||
6f0f8baf4d | |||
b7138b9b72 |
3 changed files with 102 additions and 12 deletions
10
deb.fix.sh
10
deb.fix.sh
|
@ -4,7 +4,7 @@ ROOT="$(dirname "${FILE}")"
|
||||||
|
|
||||||
ERROR='→ ERROR! ERROR! ERROR! ←'
|
ERROR='→ ERROR! ERROR! ERROR! ←'
|
||||||
DISTS=(
|
DISTS=(
|
||||||
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
'bookworm' 'bookworm-backports' 'bookworm-updates'
|
||||||
)
|
)
|
||||||
MISSING='Contents-all.gz'
|
MISSING='Contents-all.gz'
|
||||||
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
SECTIONS=('main' 'non-free-firmware' 'contrib' 'non-free')
|
||||||
|
@ -13,12 +13,12 @@ DEBIAN_ROOT='debian/dists'
|
||||||
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
LOCAL_ROOT="${ROOT}/root/deb/debian/${DEBIAN_ROOT}"
|
||||||
REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
|
REMOTE_ROOT="https://deb.debian.org/${DEBIAN_ROOT}"
|
||||||
|
|
||||||
for dist in "${DISTS[@]}" ; do
|
for dist in "${DISTS[@]}"; do
|
||||||
for section in "${SECTIONS[@]}" ; do
|
for section in "${SECTIONS[@]}"; do
|
||||||
cd "${LOCAL_ROOT}/${dist}/${section}"
|
cd "${LOCAL_ROOT}/${dist}/${section}"
|
||||||
rm --force "${MISSING}"
|
rm --force "${MISSING}"
|
||||||
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &> /dev/null
|
wget "${REMOTE_ROOT}/${dist}/${section}/${MISSING}" &>/dev/null
|
||||||
if [ ${?} -ne 0 ] ; then
|
if [ ${?} -ne 0 ]; then
|
||||||
echo "${ERROR}"
|
echo "${ERROR}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
@ -7,7 +7,10 @@ ROOT='root/msys2'
|
||||||
rm s/msys/*.tar
|
rm s/msys/*.tar
|
||||||
rm i/mingw/mingw64/*.tar
|
rm i/mingw/mingw64/*.tar
|
||||||
|
|
||||||
rm -fr "${ROOT}/msys/x86_64" ; mv -i s/msys "${ROOT}/msys/x86_64"
|
rm -fr "${ROOT}/msys/x86_64"
|
||||||
rm -fr "${ROOT}/mingw" ; mv -i i/mingw "${ROOT}/"
|
mv -i s/msys "${ROOT}/msys/x86_64"
|
||||||
|
|
||||||
|
rm -fr "${ROOT}/mingw"
|
||||||
|
mv -i i/mingw "${ROOT}/"
|
||||||
|
|
||||||
rmdir s i
|
rmdir s i
|
||||||
|
|
87
py.pi.sh
Executable file
87
py.pi.sh
Executable file
|
@ -0,0 +1,87 @@
|
||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
set \
|
||||||
|
"pip" \
|
||||||
|
"setuptools" \
|
||||||
|
"wheel" \
|
||||||
|
\
|
||||||
|
"uv" \
|
||||||
|
\
|
||||||
|
"pelican" \
|
||||||
|
\
|
||||||
|
"hatch" \
|
||||||
|
\
|
||||||
|
"Sphinx" \
|
||||||
|
"sphinx-rtd-theme" \
|
||||||
|
\
|
||||||
|
"gitlint" \
|
||||||
|
\
|
||||||
|
"pydoclint" \
|
||||||
|
"pylint" \
|
||||||
|
"ruff" \
|
||||||
|
\
|
||||||
|
"pytest" \
|
||||||
|
\
|
||||||
|
"toml" \
|
||||||
|
\
|
||||||
|
"twine" \
|
||||||
|
\
|
||||||
|
"mypy" \
|
||||||
|
"pyright" \
|
||||||
|
\
|
||||||
|
"ruamel.yaml" \
|
||||||
|
"PyYAML" \
|
||||||
|
"types-PyYAML"
|
||||||
|
|
||||||
|
file="$(readlink --canonicalize-existing "${0}")"
|
||||||
|
root="$(dirname "${file}")"
|
||||||
|
root="${root}/root/py/pi"
|
||||||
|
tmp="${root}/tmp"
|
||||||
|
|
||||||
|
rm --force --recursive \
|
||||||
|
~/.cache/pip "${root}"
|
||||||
|
|
||||||
|
python3 -m pip \
|
||||||
|
download \
|
||||||
|
--dest "${root}" \
|
||||||
|
"${@}"
|
||||||
|
|
||||||
|
prefix="Name: "
|
||||||
|
for wheel in "${root}/"*; do
|
||||||
|
echo
|
||||||
|
echo "${wheel}"
|
||||||
|
file="$(basename "${wheel}")"
|
||||||
|
case "${file}" in
|
||||||
|
*.tar.gz)
|
||||||
|
short="${file%.*}"
|
||||||
|
short="${short%.*}"
|
||||||
|
;;
|
||||||
|
*.whl)
|
||||||
|
short="${file%.*}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
file_name="$(echo "${short}" | cut -d "-" -f 1)"
|
||||||
|
file_version="$(echo "${short}" | cut -d "-" -f 2)"
|
||||||
|
case "${file}" in
|
||||||
|
*.tar.gz)
|
||||||
|
meta_data="${file_name}-${file_version}/${file_name}.egg-info/PKG-INFO"
|
||||||
|
tar xf "${wheel}" -C "${tmp}" "${meta_data}"
|
||||||
|
;;
|
||||||
|
*.whl)
|
||||||
|
meta_data="${file_name}-${file_version}.dist-info/METADATA"
|
||||||
|
unzip "${wheel}" "${meta_data}" -d "${tmp}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
name="$(grep "${prefix}" "${tmp}/${meta_data}" | sed "s|${prefix}||")"
|
||||||
|
echo "${name}"
|
||||||
|
name="$(echo "${name}" | tr "[:upper:]" "[:lower:]")"
|
||||||
|
name="$(echo "${name}" | tr "." "-")"
|
||||||
|
name="$(echo "${name}" | tr "_" "-")"
|
||||||
|
name="$(echo "${name}" | tr -d "\r")"
|
||||||
|
echo "${name}"
|
||||||
|
sub="${root}/simple/${name}"
|
||||||
|
mkdir --parents "${sub}"
|
||||||
|
mv -i "${root}/${file_name}-"* "${sub}/"
|
||||||
|
done
|
||||||
|
|
||||||
|
rm --force --recursive "${tmp}"
|
Loading…
Reference in a new issue