diff options
author | Zach van Rijn <me@zv.io> | 2022-04-28 22:32:49 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-06-12 23:51:37 +0000 |
commit | 010a90188235bf3fc0c1311c09f11136bf6e3589 (patch) | |
tree | 0dd966e6b3b3ca533c7b370065dae52932ec2c69 | |
parent | 59b8307b85ec71cdd3a77e2bc963d22e0063ae4c (diff) | |
download | packages-010a90188235bf3fc0c1311c09f11136bf6e3589.tar.gz packages-010a90188235bf3fc0c1311c09f11136bf6e3589.tar.bz2 packages-010a90188235bf3fc0c1311c09f11136bf6e3589.tar.xz packages-010a90188235bf3fc0c1311c09f11136bf6e3589.zip |
user/rust: add 'maintain' script for mirroring dep files.
-rwxr-xr-x | user/rust/maintain | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/user/rust/maintain b/user/rust/maintain new file mode 100755 index 000000000..7242bcc60 --- /dev/null +++ b/user/rust/maintain @@ -0,0 +1,17 @@ +#!/bin/sh -e + +# https://distfiles.smaeul.xyz/distfiles/adelie/ +# https://gist.github.com/smaeul/21b74f847c31824eed4291eb265fa801 + +BASE=https://distfiles.smaeul.xyz/distfiles/adelie; +DEST=/var/www/source/rust; + +cd ${DEST}; + +curl -s ${BASE}/ \ + | grep -Eo 'href=.*\.xz"' \ + | cut -d'"' -f2 \ + | while read k; do + printf " * %s\n" "${k}"; + curl -sO ${BASE}/${k}; + done |