summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2020-04-28 22:20:09 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2020-04-28 22:20:09 -0700
commit6925ffcc3d6adef82c582c9d895878bf219a2260 (patch)
treed09965093ca3b8cb6f5ab6c18de596462de85807 /mirmon-experimental.sh
parentsnapshots: call new wrapper (diff)
downloadgentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.tar.gz
gentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.tar.bz2
gentoo-mirrorstats-6925ffcc3d6adef82c582c9d895878bf219a2260.zip
switch to new refactored scripts
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'mirmon-experimental.sh')
-rwxr-xr-xmirmon-experimental.sh21
1 files changed, 4 insertions, 17 deletions
diff --git a/mirmon-experimental.sh b/mirmon-experimental.sh
index 5b671bf..a48d57f 100755
--- a/mirmon-experimental.sh
+++ b/mirmon-experimental.sh
@@ -1,18 +1,5 @@
#!/bin/bash
-
-cd /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/experimental_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/experimental ]] || mkdir ../../htdocs/experimental
-sed \
- -e 's#mirrors</H2>#<a href="http://www.gentoo.org/main/en/mirrors2.xml">mirrors</a></H2>#' \
- >../../htdocs/experimental/index.html <../../htdocs/experimental/index-wip.html
-# Generate a json file containing the state of each mirror
-..//generate-json.py /var/www/mirrorstats.gentoo.org/gentoo-mirrorstats/experimental_mirrors/var/mirmon.state \
- > ../../htdocs/experimental/state.json
+exec $(dirname "$0")/mirmon-wrapper.sh \
+ --mode=experimental \
+ --xml-src=distfiles \
+ --url=https://www.gentoo.org/downloads/mirrors/