/[smeserver]/builds_bin/rsync_sme
ViewVC logotype

Diff of /builds_bin/rsync_sme

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

Revision 1.8 by slords, Fri May 25 23:59:46 2012 UTC Revision 1.9 by slords, Fri Jul 27 18:07:11 2012 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  prefix=sme  prefix=sme
4  ver=$(basename $(readlink -f /stage/${1:-8}))  ver=$(basename $(readlink -f /build/smeserver/stage/${1:-8}))
5  isos=${2:-false}  isos=${2:-false}
6    
7  mkdir -p  /releases/testing/$ver/{${prefix}os,iso}  mkdir -p  /build/smeserver/repo/testing/$ver/{${prefix}os,iso}
8  if $isos  if $isos
9  then  then
10      rsync -avhHP --delete /stage/iso/${ver:0:1}/ /releases/testing/$ver/iso/      rsync -avhHP --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/testing/$ver/iso/
11  else  else
12      rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /stage/iso/${ver:0:1}/ /releases/testing/$ver/iso/      rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/testing/$ver/iso/
13  fi  fi
14  rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /stage/${ver:0:1}/ /releases/testing/$ver/${prefix}os/  rsync -avhHP --exclude 'product/' --exclude 'updates/' --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' --delete-excluded --delete /build/smeserver/stage/${ver:0:1}/ /build/smeserver/repo/testing/$ver/${prefix}os/
15  if [ -f /releases/testing/$ver/${prefix}os/i386/repodata/comps.xml ]  if [ -f /build/smeserver/repo/testing/$ver/${prefix}os/i386/repodata/comps.xml ]
16  then  then
17      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/i386/      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/testing/$ver/${prefix}os/i386/
18      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /releases/testing/$ver/${prefix}os/x86_64/      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/testing/$ver/${prefix}os/x86_64/
19  fi  fi
20    
21  ls /builds /releases /stage > /dev/null  ls /build > /dev/null
22  find /builds/ /releases/ /stage/ -not -user releases -exec chown -h releases {} \+ \  find /build/builds/ /build/smeserver/repo/ /build/smeserver//stage/ \
23                                 , -not -regex ".*/${prefix}\(contribs\|updates-testing\)/i386/RPMS" \        -not -user releases -exec chown -h releases {} \+ \
24                                   -not -group releases -exec chgrp -h releases {} \+ \      , -not -regex ".*/${prefix}\(contribs\|updates-testing\)/i386/RPMS" \
25                                 , -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \        -not -group releases -exec chgrp -h releases {} \+ \
26                                 , -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ \      , -type f -\( -not -perm -664 -o -perm -002 -\) -exec chmod u+rw,g+rw,o+r,o-w {} \+ \
27                                 , -regex ".*/${prefix}updates-testing/i386/RPMS" -exec chgrp updates {} \+ \      , -type d -\( -not -perm -2775 -o -perm -002 -\) -exec chmod u+rwx,g+rwxs,o+rx,o-w {} \+ \
28                                 , -regex ".*/${prefix}contribs/i386/RPMS" -exec chgrp contribs {} \+      , -regex ".*/${prefix}updates-testing/i386/RPMS" -exec chgrp updates {} \+ \
29        , -regex ".*/${prefix}contribs/i386/RPMS" -exec chgrp contribs {} \+


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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