/[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.8 - (hide annotations) (download)
Tue Jul 3 18:02:03 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
Changes since 1.7: +4 -1 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     --withnumbers \
12     $(pwd)/cdrom.image/
13    
14     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
15     $(pwd)/cdrom.image \
16 gordonr 1.4 $distarch > pkgorder
17 gordonr 1.1
18 slords 1.7 for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm
19 slords 1.3 do
20 slords 1.7 PKGFILE=$(basename $PKG)
21     if [ ! -f $(pwd)/cdrom.image/SME/$PKGFILE ]
22     then
23 slords 1.8 ln -sf $PKG $(pwd)/cdrom.image/CentOS/RPMS/
24 slords 1.3 fi
25 gordonr 1.1 done
26    
27     PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
28 slords 1.7 --product "$distname" \
29     --version "$distrel.0" \
30     --release "$distname" \
31 gordonr 1.1 --pkgorder pkgorder \
32     $(pwd)/cdrom.image/
33    
34     # Remove previous linked files
35     find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f
36    
37     # Copy updated isolinux files
38 slords 1.5 sudo cp -f /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
39 gordonr 1.1
40 slords 1.6 sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo
41    
42 slords 1.8 sudo chown -R buildcvs:developers $(pwd)/cdrom.image/
43     sudo chmod -R g+w $(pwd)/cdrom.image/
44    
45 gordonr 1.2 echo "You now need to run /builds/bin/build_ISO as non-root"
46 gordonr 1.1
47     # That's it.

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