source: soft/build_system/build_system/upload/robot/trunk/other-get-kenobi @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 2.4 KB
Line 
1#!/bin/sh
2
3RSYNCOPT=" -l --partial -az -e ssh --delete --timeout=120 $@"
4
5#LOCK=/mnt/BIG/distrib/cooker/cooker/Mandrake/.update_in_progress
6#LOCK=/mnt/BIG/distrib/.update_in_progress
7# check lock created by the admin script to be sure
8# to have a clean tree.
9
10#  ping -c 1 -i 30 kenobi > /dev/null
11
12#  if [ $? != 0 ]; then
13#      if [ -n "$*" ]; then
14#       echo "kenobi is down"
15#      fi
16#      exit 0
17#  fi
18
19# if [ -n "$*" ]; then
20#     echo "Mirroring cooker64 from kenobi"
21# fi
22# rsync $RSYNCOPT kenobi:/mnt/BIG/distrib/cooker64/ /mnt/BIG/distrib/cooker64
23
24if [ -n "$*" ]; then
25    echo "Mirroring testing from kenobi"
26fi
27rsync $RSYNCOPT --exclude Mandrivaclub --exclude Mandrakeclub kenobi:/mnt/BIG/distrib/testing /mnt/BIG/distrib/
28cd /mnt/BIG/dis/testing/
29for d in 10.0 10.1 10.2 2006.0
30do
31        echo "Building hdlist for $d"
32        TMPDIR="/home/mandrake/tmp/" ~/robot/build-hdlist $d
33done
34
35if [ -n "$*" ]; then
36    echo "Mirroring Mandrivaclub"
37fi
38#rsync -av --delete --port=20009 212.43.244.22::Volunteers /mnt/BIG/dis/testing/Mandrivaclub
39rsync -a --partial --timeout=120 --delete --port=20009 --exclude 9.0 --exclude 9.1 --exclude 9.2 "$@" upload.mandrivaclub.com::Volunteers /mnt/BIG/dis/testing/Mandrivaclub
40find /mnt/BIG/dis/testing/Mandrivaclub/ -not -perm +005 -exec chmod og+r {} \;
41cd /mnt/BIG/dis/testing/Mandrivaclub/
42for d in 10.0 10.1 10.2 2006.0
43do
44        echo "Building hdlist for $d"
45        TMPDIR="/home/mandrake/tmp/" ~/robot/build-hdlist $d
46done
47
48echo "Mirroring youri config files from kenobi"
49rsync kenobi:/etc/youri/acl.conf /etc/youri/acl.conf
50
51# if [ -n "$*" ]; then
52#     echo "Mirroring ppc install from kenobi"
53# fi
54# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/ppc/boot /mnt/BIG/dis/cooker/ppc/
55# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/ppc/Mandrake/mdkinst /mnt/BIG/dis/cooker/ppc/Mandrake/
56# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/ppc/Mandrake/base/*.bz2 /mnt/BIG/dis/cooker/ppc/Mandrake/base/
57
58# if [ -n "$*" ]; then
59#     echo "Mirroring ppc install from kenobi"
60# fi
61# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/ppc /mnt/BIG/dis/cooker/
62
63# if [ -n "$*" ]; then
64#     echo "Mirroring alpha from kenobi"
65# fi
66# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/alpha /mnt/BIG/dis/cooker/
67
68# if [ -n "$*" ]; then
69#     echo "Mirroring sparc from kenobi"
70# fi
71# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/sparc /mnt/BIG/dis/cooker/
72#
73# if [ -n "$*" ]; then
74#     echo "Mirroring sparc64 from kenobi"
75# fi
76# rsync $RSYNCOPT kenobi:/mnt/BIG/dis/cooker/sparc64 /mnt/BIG/dis/cooker/
Note: See TracBrowser for help on using the repository browser.