/[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.9 by slords, Fri Jul 27 18:07:11 2012 UTC Revision 1.10 by slords, Wed Feb 13 19:36:25 2013 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  prefix=sme  prefix=sme
4  ver=$(basename $(readlink -f /build/smeserver/stage/${1:-8}))  ver=$(basename $(readlink -f /build/smeserver/stage/${1:-9}))
5  isos=${2:-false}  isos=${2:-false}
6    dest=testing
7    
8  mkdir -p  /build/smeserver/repo/testing/$ver/{${prefix}os,iso}  mkdir -p  /build/smeserver/repo/$dest/$ver/{${prefix}os,iso}
9  if $isos  if $isos
10  then  then
11      rsync -avhHP --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/testing/$ver/iso/      rsync -avhHP --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/$dest/$ver/iso/
12  else  else
13      rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/testing/$ver/iso/      rsync -avhHP --exclude '*.iso*' --delete-excluded --delete /build/smeserver/stage/iso/${ver:0:1}/ /build/smeserver/repo/$dest/$ver/iso/
14  fi  fi
15  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/  rsync -avhHP --exclude 'product/' --exclude 'updates/' --delete-excluded --delete \
16  if [ -f /build/smeserver/repo/testing/$ver/${prefix}os/i386/repodata/comps.xml ]      --exclude 'pkgorder.*' --exclude 'build_*' --exclude '*.jigdo/' \
17        /build/smeserver/stage/${ver:0:1}/ /build/smeserver/repo/$dest/$ver/${prefix}os/
18    
19    if [ ${ver:0:1} -eq 8 ]
20  then  then
21      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/testing/$ver/${prefix}os/i386/      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/$dest/$ver/${prefix}os/i386/
22      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/testing/$ver/${prefix}os/x86_64/      createrepo --update --database --checksum sha --groupfile repodata/comps.xml /build/smeserver/repo/$dest/$ver/${prefix}os/x86_64/
23  fi  fi
24    
25  ls /build > /dev/null  ls /build > /dev/null


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