summaryrefslogtreecommitdiff
path: root/user/rust
diff options
context:
space:
mode:
Diffstat (limited to 'user/rust')
-rwxr-xr-xuser/rust/maintain17
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