/[smeserver]/builds_bin/rsync_sme
ViewVC logotype

Annotation of /builds_bin/rsync_sme

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Sun May 23 19:50:15 2010 UTC (14 years, 6 months ago) by slords
Branch: MAIN
Changes since 1.2: +3 -3 lines
Update tools

1 slords 1.1 #!/bin/bash
2    
3 slords 1.3 ver7=7.5
4     ver8=8.0
5 slords 1.2 isos=true
6 slords 1.1
7 slords 1.3 if [ ! -z "$ver7" ]
8 slords 1.1 then
9 slords 1.2 mkdir -p /releases/testing/$ver7/{smeos,iso}
10     if $isos
11     then
12     rsync -avhHP --delete /stage/iso/7/ /releases/testing/$ver7/iso/
13     else
14     rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /stage/iso/7/ /releases/testing/$ver7/iso/
15     fi
16     rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/7/ /releases/testing/$ver7/smeos/
17 slords 1.1 fi
18    
19 slords 1.2 if [ ! -z "$ver8" ]
20 slords 1.1 then
21 slords 1.2 mkdir -p /releases/testing/$ver8/{smeos,iso}
22     if $isos
23     then
24     rsync -avhHP --delete /stage/iso/8/ /releases/testing/$ver8/iso/
25     else
26     rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /stage/iso/8/ /releases/testing/$ver8/iso/
27     fi
28     rsync -avhHP --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/8/ /releases/testing/$ver8/smeos/
29     createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver8/smeos/i386/
30     createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver8/smeos/x86_64/
31 slords 1.1 fi
32    
33     ls /builds /releases /stage > /dev/null
34     find /builds/ /releases/ /stage/ -\( -not -user releases -o -not -group releases -\) -print0 | xargs -r0 chown releases:releases
35     chgrp updates /releases/{7,testing/8}/smeupdates-testing/i386/RPMS
36     chgrp contribs /releases/{7,testing/8}/smecontribs/i386/RPMS
37     find /builds/ /releases/ /stage/ -type f -\( -not -perm -664 -o -perm -002 -\) -print0 | xargs -r0 chmod u+rw,g+rw,o+r,o-w
38     find /builds/ /releases/ /stage/ -type d -\( -not -perm -2775 -o -perm -002 -\) -print0 | xargs -r0 chmod u+rwx,g+rwxs,o+rx,o-w

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed