source: soft/build_system/build_system/upload/robot/trunk/hammer-mirror @ 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: 846 bytes
Line 
1#!/bin/sh
2
3RSYNCOPT=" -l --partial -az -e ssh --delete --timeout=120 $@"
4
5if [ -n "$*" ]; then
6    echo "Mirroring hammer from kenobi"
7fi
8
9rsync $RSYNCOPT kenobi:/mnt/BIG/distrib/x86_64/cooker/ /mnt/BIG/distrib/9.0/x86_64/
10
11cd /mnt/BIG/distrib/9.0/x86_64/Mandrake/RPMS
12for p in *.rpm; do
13    rpm -K $p | grep gpg
14    if [ $? != 0 ]; then
15        sudo -H /root/bin/resign $p && echo "$p signed" || echo "FAILURE TO SIGN $p"
16    fi
17done
18
19if [ -n "$*" ]; then
20    echo "Remirroring to kenobi"
21fi
22rsync $RSYNCOPT /mnt/BIG/distrib/9.0/x86_64/ kenobi:/mnt/BIG/distrib/x86_64/cooker/
23
24if [ -n "$*" ]; then
25    echo "Pushing to mirror"
26fi
27
28#rsync $RSYNCOPT /mnt/BIG/distrib/x86_64  rsync:/Disk1/mirror/amd
29#rsync --port=20010 $RSYNCOPT /mnt/BIG/distrib/x86_64 amd::AMD
30
31rsync $RSYNCOPT /mnt/BIG/distrib/9.0/x86_64/  rsync:/Disk1/mirror/pub/Mandrake/9.0/x86_64/
Note: See TracBrowser for help on using the repository browser.