source: soft/build_system/build_system/upload/robot/trunk/sync_beta @ 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.0 KB
Line 
1#!/bin/sh
2
3VERSION=$1
4
5TAG=$2
6
7if [ -z "$VERSION" -o -z "$TAG" ]; then
8        echo usage:
9        echo
10        echo "          sync_beta <version> <tag>"
11        echo
12        exit
13fi
14
15if [ "$VERSION" == "10.0" -o "$VERSION" == "10.1" -o "$VERSION" == "10.2" ]; then
16        echo "$VERSION is finished, could not change it"
17        exit
18fi
19
20V_PATH=/mnt/BIG/dis/community/$VERSION/
21
22echo 1
23rsync --delete --exclude Mandrake --exclude media -avPrlH /c/cooker/ $V_PATH/i586/
24rsync --delete --exclude Mandrake --exclude media -avPrlH /c/x86_64/ $V_PATH/x86_64/
25echo 2
26rsync --delete --exclude media_info -avPrlH --link-dest=/media/contrib/ /media/contrib/ $V_PATH/i586/media/contrib/
27rsync --delete --exclude media_info -avPrlH --link-dest=/c/x86_64/media/contrib/ /c/x86_64/media/contrib/ $V_PATH/x86_64/media/contrib/
28echo 3
29rsync --delete -avPrlH /media/contrib/media_info/ $V_PATH/i586/media/contrib/media_info
30rsync --delete -avPrlH /c/x86_64/media/contrib/media_info/ $V_PATH/x86_64/media/contrib/media_info
31echo 4
32rsync --delete --exclude media_info -avPrlH --link-dest=/media/main/ /media/main/ $V_PATH/i586/media/main/
33rsync --delete --exclude media_info -avPrlH --link-dest=/c/x86_64/media/main/ /c/x86_64/media/main/ $V_PATH/x86_64/media/main/
34echo 5
35rsync --delete -avPrlH /media/main/media_info/ /$V_PATH/i586/media/main/media_info
36rsync --delete -avPrlH /c/x86_64/media/main/media_info/ /$V_PATH/x86_64/media/main/media_info
37echo 6
38rsync --delete --exclude media_info -avPrlH --link-dest=/media/jpackage/ /media/jpackage/ $V_PATH/i586/media/jpackage/
39echo 7
40rsync --delete -avPrlH /media/jpackage/media_info $V_PATH/i586/media/jpackage/media_info
41echo 8
42rsync --delete -avPrlH --link-dest=/SRPMS/ /SRPMS/ $V_PATH/SRPMS/
43
44rsync --delete -avPrlH /media/media_info/ $V_PATH/i586/media/media_info/
45rsync --delete -avPrlH /c/x86_64/media/media_info/ $V_PATH/x86_64/media/media_info/
46
47echo "Mandriva Linux $VERSION $TAG-Download-i586 `date +"%Y%m%d %k:%M"`" > $V_PATH/i586/VERSION
48echo "Mandriva Linux $VERSION $TAG-Download-x86_64 `date +"%Y%m%d %k:%M"`" > $V_PATH/x86_64/VERSION
Note: See TracBrowser for help on using the repository browser.