1 |
#!/bin/bash |
#!/bin/bash |
2 |
|
|
3 |
ver7=7.5beta1 |
ver7=7.5 |
4 |
ver8=8.0beta5 |
ver8=8.0 |
5 |
isos=false |
isos=true |
6 |
|
|
7 |
mkdir -p /releases/testing/$ver8/{smeos,iso} |
if [ ! -z "$ver7" ] |
|
if $isos |
|
8 |
then |
then |
9 |
rsync -avhHP --delete /stage/iso/7/ /releases/testing/$ver7/iso/ |
mkdir -p /releases/testing/$ver7/{smeos,iso} |
10 |
else |
if $isos |
11 |
rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /stage/iso/7/ /releases/testing/$ver7/iso/ |
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 |
fi |
|
rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/7/ /releases/testing/$ver7/smeos/ |
|
18 |
|
|
19 |
if $isos |
if [ ! -z "$ver8" ] |
20 |
then |
then |
21 |
rsync -avhHP --delete /stage/iso/8/ /releases/testing/$ver8/iso/ |
mkdir -p /releases/testing/$ver8/{smeos,iso} |
22 |
else |
if $isos |
23 |
rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /stage/iso/8/ /releases/testing/$ver8/iso/ |
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 |
fi |
|
rsync -avhHP --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/8/ /releases/testing/$ver8/smeos/ |
|
|
createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver8/smeos/i386/ |
|
|
createrepo --update --database --groupfile repodata/comps.xml /releases/testing/$ver8/smeos/x86_64/ |
|
32 |
|
|
33 |
ls /builds /releases /stage > /dev/null |
ls /builds /releases /stage > /dev/null |
34 |
find /builds/ /releases/ /stage/ -\( -not -user releases -o -not -group releases -\) -print0 | xargs -r0 chown releases:releases |
find /builds/ /releases/ /stage/ -\( -not -user releases -o -not -group releases -\) -print0 | xargs -r0 chown releases:releases |