/[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.1 by slords, Fri Feb 12 18:52:06 2010 UTC Revision 1.2 by slords, Wed Apr 21 16:35:59 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  ver7=7.5beta1  ver7=7.5rc2
4  ver8=8.0beta5  ver8=8.0beta5
5  isos=false  isos=true
6    
7  mkdir -p  /releases/testing/$ver8/{smeos,iso}  if [ ! -z "$ver8" ]
 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


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