/[smeserver]/builds_bin/build_installer
ViewVC logotype

Annotation of /builds_bin/build_installer

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


Revision 1.9 - (hide annotations) (download)
Thu Jul 19 19:59:15 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
Changes since 1.8: +5 -2 lines
Tools update

1 gordonr 1.1 #!/bin/sh
2    
3 slords 1.5 [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
4 gordonr 1.1
5     distname='SME Server'
6 slords 1.7 distrel=7
7 gordonr 1.1 distvers=$(basename $(pwd))
8 slords 1.5 distarch=$(uname -i)
9 gordonr 1.1
10     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
11 slords 1.9 --productpath SME \
12 gordonr 1.1 --withnumbers \
13     $(pwd)/cdrom.image/
14    
15     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
16 slords 1.9 --product SME \
17 gordonr 1.1 $(pwd)/cdrom.image \
18 gordonr 1.4 $distarch > pkgorder
19 gordonr 1.1
20 slords 1.7 for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm
21 slords 1.3 do
22 slords 1.7 PKGFILE=$(basename $PKG)
23     if [ ! -f $(pwd)/cdrom.image/SME/$PKGFILE ]
24     then
25 slords 1.9 ln -sf $PKG $(pwd)/cdrom.image/SME/RPMS/
26 slords 1.3 fi
27 gordonr 1.1 done
28    
29     PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
30 slords 1.7 --product "$distname" \
31     --version "$distrel.0" \
32     --release "$distname" \
33 slords 1.9 --prodpath SME \
34 gordonr 1.1 --pkgorder pkgorder \
35     $(pwd)/cdrom.image/
36    
37     # Remove previous linked files
38 slords 1.9 find $(pwd)/cdrom.image/SME/RPMS/ -type l | xargs rm -f
39 gordonr 1.1
40     # Copy updated isolinux files
41 slords 1.5 sudo cp -f /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
42 gordonr 1.1
43 slords 1.6 sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo
44    
45 slords 1.8 sudo chown -R buildcvs:developers $(pwd)/cdrom.image/
46     sudo chmod -R g+w $(pwd)/cdrom.image/
47    
48 gordonr 1.2 echo "You now need to run /builds/bin/build_ISO as non-root"
49 gordonr 1.1
50     # That's it.

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