/[smeserver]/builds_bin/build_installer
ViewVC logotype

Contents of /builds_bin/build_installer

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


Revision 1.7 - (show annotations) (download)
Tue Jul 3 17:54:41 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.6: +9 -75 lines
Tools update

1 #!/bin/sh
2
3 [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
4
5 distname='SME Server'
6 distrel=7
7 distvers=$(basename $(pwd))
8 distarch=$(uname -i)
9
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 $distarch > pkgorder
17
18 for PKG in /releases/$distrel/smeextras/$distarch/RPMS/*.rpm
19 do
20 PKGFILE=$(basename $PKG)
21 if [ ! -f $(pwd)/cdrom.image/SME/$PKGFILE ]
22 then
23 ln -sf $PKG $(pwd)/cdrom.image/SME/
24 fi
25 done
26
27 PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
28 --product "$distname" \
29 --version "$distrel.0" \
30 --release "$distname" \
31 --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 sudo cp -f /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
39
40 sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo
41
42 echo "You now need to run /builds/bin/build_ISO as non-root"
43
44 # That's it.

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