summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mirmon-releases.sh')
-rwxr-xr-xmirmon-releases.sh21
1 files changed, 4 insertions, 17 deletions
diff --git a/mirmon-releases.sh b/mirmon-releases.sh
index bbd5640..4839856 100755
--- a/mirmon-releases.sh
+++ b/mirmon-releases.sh
@@ -1,18 +1,5 @@
#!/bin/bash
-
-cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/releases_mirrors
-# Grab mirrors from the web
-[[ -d ./var ]] || mkdir ./var
-../get-mirrors-from-distfiles-xml.rb > ./var/g.mirrors
-# fatal if the state file is NOT present.
-[[ -e ./var/mirmon.state ]] || touch ./var/mirmon.state
-# run mirmon
-/usr/bin/perl ../../mirmon/mirmon -c ./mirmon.conf -q -get update
-# Set up a nice link to our mirror page directly:
-[[ -d ../../htdocs/releases ]] || mkdir ../../htdocs/releases
-sed \
- -e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \
- >../../htdocs/releases/index.html <../../htdocs/releases/index-wip.html
-# Generate a json file containing the state of each mirror
-..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/releases_mirrors/var/mirmon.state \
- > ../../htdocs/releases/state.json
+exec $(dirname "$0")/mirmon-wrapper.sh \
+ --mode=releases \
+ --xml-src=distfiles \
+ --url=https://www.gentoo.org/downloads/mirrors/