1 |
slords |
1.1 |
#!/bin/bash |
2 |
|
|
|
3 |
slords |
1.4 |
#ver7=7.5.1 |
4 |
|
|
ver8=8.0beta6 |
5 |
|
|
isos=false |
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 |
slords |
1.4 |
find /builds/ /releases/ /stage/ -not -user releases -exec chown releases {} \+ -o -not -group releases -exec chgrp releases {} \+ |
35 |
slords |
1.1 |
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 |