/[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.17 by slords, Wed Nov 7 17:19:07 2007 UTC Revision 1.21 by slords, Tue Apr 22 23:06:43 2008 UTC
# Line 6  distvers=$(basename $(pwd)) Line 6  distvers=$(basename $(pwd))
6  distrel=${distvers:0:1}  distrel=${distvers:0:1}
7  distarch=$(uname -i)  distarch=$(uname -i)
8    
9    exec < /dev/null
10    exec &> build_ISO.$distarch
11    
12  if ! [ -d $distarch ]  if ! [ -d $distarch ]
13  then  then
14      echo "No $distarch directory?"      echo "No $distarch directory?"
# Line 19  do Line 22  do
22          /usr/bin/mkcramfs \          /usr/bin/mkcramfs \
23          $(pwd)/$distarch/$img \          $(pwd)/$distarch/$img \
24          $(pwd)/$distarch/SME/base/$img.img          $(pwd)/$distarch/SME/base/$img.img
25      else      elif [ -d "$(pwd)/$distarch/$img" ]
26        then
27          /sbin/mksquashfs \          /sbin/mksquashfs \
28              $(pwd)/$distarch/$img \              $(pwd)/$distarch/$img \
29              $(pwd)/$distarch/images/$img.img \              $(pwd)/$distarch/images/$img.img \
# Line 38  then Line 42  then
42      PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \      PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
43          --product SME \          --product SME \
44          $(pwd)/$distarch \          $(pwd)/$distarch \
45          $distarch > pkgorder          $distarch > pkgorder.$distarch
46    
47      PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \      PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
48          --productpath SME \          --productpath SME \
49          --withnumbers \          --withnumbers \
50          --fileorder pkgorder \          --fileorder pkgorder.$distarch \
51          $(pwd)/$distarch/          $(pwd)/$distarch/
52  fi  fi
53    
# Line 78  mkisofs $mkisopts \ Line 82  mkisofs $mkisopts \
82  dd if=/dev/zero bs=2048 count=150 >> ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso  dd if=/dev/zero bs=2048 count=150 >> ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso
83  md5sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.md5sum  md5sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.md5sum
84  sha1sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.sha1sum  sha1sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.sha1sum
85  zsyncmake -o ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.zsync ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso  zsyncmake -u $disttag-$distvers-$distarch.iso -o ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.zsync ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso
86  mv ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso ../iso/$distrel/$distarch/$disttag.iso  mv ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso ../iso/$distrel/$distarch/$disttag.iso
87  ln -sf $disttag.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso  ln -sf $disttag.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso
88    
# Line 99  then Line 103  then
103    
104      md5sum ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso > ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.md5sum      md5sum ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso > ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.md5sum
105      sha1sum ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso > ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.sha1sum      sha1sum ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso > ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.sha1sum
106      zsyncmake -o ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.zsync ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso      zsyncmake -u $disttag-$distvers-SRPMS.iso -o ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso.zsync ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso
107      mv ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso ../iso/$distrel/source/$disttag-SRPMS.iso      mv ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso ../iso/$distrel/source/$disttag-SRPMS.iso
108      ln -sf $disttag-SRPMS.iso ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso      ln -sf $disttag-SRPMS.iso ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso
109  fi  fi
110    
111  # That's it.  # That's it.
   


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