refine strategy to spot ip address, keep on calling guest_ipv4
[build.git] / mirroring / mirror.sh
index 8a59805..95778da 100755 (executable)
@@ -1,12 +1,11 @@
 #!/bin/bash
-# $Id$
 
 COMMAND=$(basename $0)
 DIRNAME=$(dirname $0)
 
 default_url="http://localhost/mirror/"
-default_distro="f8"
-all_distros="f8 f10 centos5"
+default_distro="f14"
+all_distros="f12 f14 f16 f18 f20"
 
 function check_distro () {
     local distro=$1; shift
@@ -19,7 +18,7 @@ function check_distro () {
 
 function do_repo () {
     local distro=$1; shift
-    sedargs="-e s,@MIRRORURL@,$URL,"
+    sedargs="-e s,@MIRRORURL@,$URL,g"
     [ -n "$GPGOFF" ] && sedargs="$sedargs -e "'s,gpgcheck\W*=\W*1,gpgcheck=0,'
     sed $sedargs $DIRNAME/$distro/yum.repos.d/building.repo.in
 }
@@ -94,7 +93,7 @@ function usage () {
     echo "Examples"
     echo "  $COMMAND -a display "
     echo "  $COMMAND -a superclean"
-    echo "  $COMMAND -a -u http://mirror.one-lab.org/ init"
+    echo "  $COMMAND -a -u http://mirror.onelab.eu/ init"
     echo "  $COMMAND -a display"
     exit 1
 }