/[smeserver]/builds_bin/rsync_sme
ViewVC logotype

Contents of /builds_bin/rsync_sme

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


Revision 1.2 - (show annotations) (download)
Wed Apr 21 16:35:59 2010 UTC (14 years, 6 months ago) by slords
Branch: MAIN
Changes since 1.1: +22 -15 lines
Update

1 #!/bin/bash
2
3 ver7=7.5rc2
4 ver8=8.0beta5
5 isos=true
6
7 if [ ! -z "$ver8" ]
8 then
9 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 fi
18
19 if [ ! -z "$ver8" ]
20 then
21 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 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