diff options
author | Zach van Rijn <me@zv.io> | 2022-04-28 22:32:49 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:33:58 -0500 |
commit | 5b2b6500bfbd058f17e531d0095b63ce00e992fc (patch) | |
tree | 64615877bff860fba1a6a22edfdac5f53097dcb1 /user/rust | |
parent | 203c23f8cdabf1be9cbd4bb07b2f507a56bb3ca9 (diff) | |
download | packages-5b2b6500bfbd058f17e531d0095b63ce00e992fc.tar.gz packages-5b2b6500bfbd058f17e531d0095b63ce00e992fc.tar.bz2 packages-5b2b6500bfbd058f17e531d0095b63ce00e992fc.tar.xz packages-5b2b6500bfbd058f17e531d0095b63ce00e992fc.zip |
user/rust: add 'maintain' script for mirroring dep files.
Diffstat (limited to 'user/rust')
-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 |