1 |
gordonr |
1.1 |
#!/bin/sh |
2 |
|
|
|
3 |
|
|
for img in product updates |
4 |
|
|
do |
5 |
|
|
/usr/bin/mkcramfs \ |
6 |
|
|
/builds/current/cdrom.image/$img \ |
7 |
|
|
/builds/current/cdrom.image/CentOS/base/$img.img |
8 |
|
|
done |
9 |
|
|
|
10 |
|
|
rm -f ~/rpms/SRPMS/comps-* |
11 |
|
|
rm -f ~/rpms/RPMS/i386/comps-* |
12 |
|
|
rpmbuild -ba ~/rpms/SPECS/comps-smeserver.spec |
13 |
|
|
cp ~/rpms/SRPMS/comps* /builds/rpms/SRPMS/ |
14 |
|
|
cp ~/rpms/RPMS/i386/comps* /builds/rpms/RPMS/i386/ |
15 |
|
|
rm -f /builds/current/cdrom.image/CentOS/RPMS/comps-4* |
16 |
|
|
cp ~/rpms/RPMS/i386/comps* /builds/current/cdrom.image/CentOS/RPMS/ |
17 |
|
|
cp -f ~/rpms/RPMS/i386/comps* /builds/current/cdrom.image/CentOS/base/comps.rpm |
18 |
|
|
|
19 |
|
|
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \ |
20 |
|
|
--withnumbers \ |
21 |
|
|
/builds/current/cdrom.image/ |
22 |
|
|
|
23 |
|
|
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \ |
24 |
|
|
/builds/current/cdrom.image \ |
25 |
|
|
i386 > /tmp/pkgorder |
26 |
|
|
|
27 |
|
|
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \ |
28 |
|
|
--withnumbers \ |
29 |
|
|
--fileorder /tmp/pkgorder \ |
30 |
|
|
/builds/current/cdrom.image/ |
31 |
|
|
|
32 |
|
|
rm -f ~/rpms/SRPMS/comps-* |
33 |
|
|
rm -f ~/rpms/RPMS/i386/comps-* |
34 |
|
|
rpmbuild -ba ~/rpms/SPECS/comps-smeserver.spec |
35 |
|
|
cp ~/rpms/SRPMS/comps* /builds/rpms/SRPMS/ |
36 |
|
|
cp ~/rpms/RPMS/i386/comps* /builds/rpms/RPMS/i386/ |
37 |
|
|
rm -f /builds/current/cdrom.image/CentOS/RPMS/comps-4* |
38 |
|
|
cp ~/rpms/RPMS/i386/comps* /builds/current/cdrom.image/CentOS/RPMS/ |
39 |
|
|
cp -f ~/rpms/RPMS/i386/comps* /builds/current/cdrom.image/CentOS/base/comps.rpm |
40 |
|
|
|
41 |
|
|
rm /tmp/pkgorder |
42 |
|
|
|
43 |
|
|
# That's it. |