aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-04-02 11:09:31 +0200
committerAlex Legler <alex@a3li.li>2015-04-02 11:09:31 +0200
commitb0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef (patch)
treeae0ac2aedd349e4e5757200b5017e12f9a2b5b36 /bin/update-downloads.sh
downloadwww-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.gz
www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.tar.bz2
www-b0c622da7c0a8bdabb33d63fd0c2d7c2b9df02ef.zip
Initial version
Diffstat (limited to 'bin/update-downloads.sh')
-rwxr-xr-xbin/update-downloads.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/update-downloads.sh b/bin/update-downloads.sh
new file mode 100755
index 0000000..9836ad7
--- /dev/null
+++ b/bin/update-downloads.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+ARCHES=(amd64 x86 alpha arm hppa ia64 mips ppc s390 sh sparc)
+
+echo -n 'Updating downloads...'
+
+for arch in "${ARCHES[@]}"; do
+ mkdir -p _data/downloads/${arch}/
+ wget "http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-iso.txt" -O _data/downloads/${arch}/iso.txt 2>/dev/null
+ wget "http://distfiles.gentoo.org/releases/${arch}/autobuilds/latest-stage3.txt" -O _data/downloads/${arch}/stage3.txt 2>/dev/null
+done
+
+echo 'done.' \ No newline at end of file