/[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.11 - (hide annotations) (download)
Sun Jun 14 05:54:38 2020 UTC (4 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +23 -8 lines
global update of current bins

1 slords 1.1 #!/bin/bash
2 jpp 1.11 #change the release number on the ver line
3     # run this as root
4     # set det to testing or empty
5 slords 1.5 prefix=sme
6 jpp 1.11 ver=$(basename $(readlink -f /build/smeserver/stage/${1:-10}))
7 slords 1.5 isos=${2:-false}
8 jpp 1.11 dest="testing"
9 slords 1.1
10 slords 1.10 mkdir -p /build/smeserver/repo/$dest/$ver/{${prefix}os,iso}
11 slords 1.5 if $isos
12 slords 1.1 then
13 jpp 1.11 rsync -avhHP --delete /build/smeserver/stage/iso/${ver%%.*}/ /build/smeserver/repo/$dest/$ver/iso/
14 slords 1.5 else
15 jpp 1.11 rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /build/smeserver/stage/iso/${ver%%.*}/ /build/smeserver/repo/$dest/$ver/iso/
16 slords 1.1 fi
17 slords 1.10 rsync -avhHP --exclude 'product/' --exclude 'updates/' --delete-excluded --delete \
18     --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' \
19 jpp 1.11 /build/smeserver/stage/${ver%%.*}/ /build/smeserver/repo/$dest/$ver/${prefix}os/
20 slords 1.10
21 jpp 1.11 if [ ${ver%%.*} -eq 8 ]
22 slords 1.1 then
23 slords 1.10 createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/$dest/$ver/${prefix}os/i386/
24     createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/$dest/$ver/${prefix}os/x86_64/
25 slords 1.1 fi
26    
27 slords 1.9 ls /build > /dev/null
28 jpp 1.11 if [ ${ver%%.*} -eq 10 ]
29     then
30    
31     find /build/builds/ /build/smeserver/repo/ /build/smeserver//stage/ \
32     -not -user releases -exec chown -h releases {} \+ \
33     , -not -regex ".*/${prefix}\(contribs\|updates-testing\)/x86_64/RPMS" \
34     -not -group releases -exec chgrp -h releases {} \+ \
35     , -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \
36     , -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ \
37     , -regex ".*/${prefix}updates-testing/x86_64/RPMS" -exec chgrp updates {} \+ \
38     , -regex ".*/${prefix}contribs/x86_64/RPMS" -exec chgrp contribs {} \+
39     else
40 slords 1.9 find /build/builds/ /build/smeserver/repo/ /build/smeserver//stage/ \
41     -not -user releases -exec chown -h releases {} \+ \
42 jpp 1.11 , -not -regex ".*/${prefix}\(contribs\|updates-testing\)/\(i386\|x86_64\)/RPMS" \
43 slords 1.9 -not -group releases -exec chgrp -h releases {} \+ \
44     , -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \
45     , -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ \
46     , -regex ".*/${prefix}updates-testing/i386/RPMS" -exec chgrp updates {} \+ \
47     , -regex ".*/${prefix}contribs/i386/RPMS" -exec chgrp contribs {} \+
48 jpp 1.11 fi

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