/[smeserver]/builds_bin/build_ISO
ViewVC logotype

Diff of /builds_bin/build_ISO

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

Revision 1.2 by gordonr, Tue Mar 28 05:35:19 2006 UTC Revision 1.7 by slords, Tue Jan 16 18:18:19 2007 UTC
# Line 27  done Line 27  done
27  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
28    
29  distname='SME Server'  distname='SME Server'
30    disttag='smeserver'
31  distvers=$(basename $(pwd))  distvers=$(basename $(pwd))
32    
33  [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda  [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda
# Line 53  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a Line 54  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a
54          --fileorder pkgorder \          --fileorder pkgorder \
55          $(pwd)/cdrom.image/          $(pwd)/cdrom.image/
56    
57  rm -f smeserver-$distvers.iso smeserver.iso  rm -f $disttag-$distvers.iso smeserver.iso
58    
59  cd cdrom.image  cd cdrom.image
60    
61  yum-arch .  yum-arch .
62  createrepo .  createrepo .
63    repoview .
64    
65  bootimg='isolinux/isolinux.bin'  bootimg='isolinux/isolinux.bin'
66  bootcat='isolinux/boot.cat'  bootcat='isolinux/boot.cat'
# Line 73  mkisofs $mkisopts \ Line 75  mkisofs $mkisopts \
75          -no-emul-boot -boot-load-size 4 -boot-info-table \          -no-emul-boot -boot-load-size 4 -boot-info-table \
76          -x lost+found \          -x lost+found \
77          -x CVS \          -x CVS \
78          -o "../smeserver-$distvers".iso \          -o "../$disttag-$distvers".iso \
79          .          .
80    
81  cd ..  cd ..
82  /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso  /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
83  dd if=/dev/zero bs=2048 count=150 >> smeserver-$distvers.iso  dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
84  md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum  md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
85  ls -lRt > smeserver-$distvers.iso.ls-lRt  ls -lRt > $disttag-$distvers.iso.ls-lRt
86  zsyncmake smeserver-$distvers.iso  zsyncmake $disttag-$distvers.iso
87  mv smeserver-$distvers.iso smeserver.iso  mv $disttag-$distvers.iso $disttag.iso
88  ln -sf smeserver.iso smeserver-$distvers.iso  ln -sf $disttag.iso $disttag-$distvers.iso
89    
90    echo "Building SRPMS ISO"
91    
92    rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
93    
94    mkisofs $mkisopts \
95            -V "$distname $distvers SRPMS" \
96            -A "$distname SRPMS created on $today" \
97            -x lost+found \
98            -x CVS \
99            -x cdrom.image \
100            -o "$disttag-$distvers-SRPMS".iso \
101            --graft-points \
102            ./SRPMS=SRPMS \
103            GPL=cdrom.image/GPL \
104            RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \
105            RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
106            RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
107    
108    md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
109    zsyncmake $disttag-$distvers-SRPMS.iso
110    mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
111    ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
112    
113  # That's it.  # That's it.
114    


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