2 |
|
|
3 |
distname='SME Server' |
distname='SME Server' |
4 |
disttag='smeserver' |
disttag='smeserver' |
5 |
distvers=$(basename $(pwd)) |
distvers=$(basename $(readlink -f $(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?" |
55 |
|
|
56 |
if [ "$distrel" == "7" ] |
if [ "$distrel" == "7" ] |
57 |
then |
then |
58 |
createrepo $(pwd)/$distarch/ |
createrepo --update --database $(pwd)/$distarch/ |
59 |
else |
else |
60 |
createrepo -g repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/ |
createrepo --update --database --groupfile repodata/comps.xml -u "media://$(head -1 $distarch/.discinfo)" $(pwd)/$distarch/ |
61 |
fi |
fi |
62 |
sync; rm -rf $(pwd)/$distarch/.olddata |
sync; rm -rf $(pwd)/$distarch/.olddata |
63 |
repoview $(pwd)/$distarch/ |
repoview $(pwd)/$distarch/ |
73 |
-b "$bootimg" \ |
-b "$bootimg" \ |
74 |
-c "$bootcat" \ |
-c "$bootcat" \ |
75 |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
-no-emul-boot -boot-load-size 4 -boot-info-table \ |
76 |
-x lost+found \ |
-x lost+found -x product -x updates -x 'buildinstall.tree.*' -x CVS \ |
|
-x CVS \ |
|
77 |
-o ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso \ |
-o ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso \ |
78 |
$(pwd)/$distarch/ |
$(pwd)/$distarch/ |
79 |
|
|
85 |
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 |
86 |
ln -sf $disttag.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso |
ln -sf $disttag.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso |
87 |
|
|
88 |
|
rsync -a --delete --delete-excluded \ |
89 |
|
--exclude 'repodata/' --exclude 'product/' --exclude 'updates/' \ |
90 |
|
--exclude 'lost+found/' --exclude 'CVS/' --exclude 'buildinstall.tree.*/' \ |
91 |
|
--link-dest=../$distarch/ $distarch/ $distarch.jigdo/ |
92 |
|
jigdo-file make-template --force \ |
93 |
|
-i ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso \ |
94 |
|
-j ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.jigdo \ |
95 |
|
-t ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.template \ |
96 |
|
--label SMEmirror=$distarch.jigdo/ \ |
97 |
|
--uri SMEmirror=http://mirror.contribs.org/releases/testing/$distrel/smeos/$distarch/ \ |
98 |
|
$distarch.jigdo// |
99 |
|
rm -rf $distarch.jigdo/ |
100 |
|
|
101 |
if [ -d SRPMS -a "$distarch" == "i386" ] |
if [ -d SRPMS -a "$distarch" == "i386" ] |
102 |
then |
then |
103 |
rm -f ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso ../iso/$distrel/source/$disttag-SRPMS.iso |
rm -f ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso ../iso/$distrel/source/$disttag-SRPMS.iso |
105 |
mkisofs $mkisopts \ |
mkisofs $mkisopts \ |
106 |
-V "$distname $distvers SRPMS" \ |
-V "$distname $distvers SRPMS" \ |
107 |
-A "$distname SRPMS created on $today" \ |
-A "$distname SRPMS created on $today" \ |
108 |
-x lost+found \ |
-x lost+found -x product -x updates -x 'buildinstall.tree.*' -x CVS \ |
|
-x CVS \ |
|
109 |
-o ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso \ |
-o ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso \ |
110 |
--graft-points \ |
--graft-points \ |
111 |
./SRPMS=SRPMS \ |
./SRPMS=SRPMS \ |
117 |
zsyncmake -u $disttag-$distvers-SRPMS.iso -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 |
118 |
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 |
119 |
ln -sf $disttag-SRPMS.iso ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso |
ln -sf $disttag-SRPMS.iso ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso |
120 |
|
|
121 |
|
jigdo-file make-template --force \ |
122 |
|
-i ../iso/$distrel/source/$disttag-$distvers-SRPMS.iso \ |
123 |
|
-j ../iso/$distrel/source/$disttag-$distvers-SRPMS.jigdo \ |
124 |
|
-t ../iso/$distrel/source/$disttag-$distvers-SRPMS.template \ |
125 |
|
--label SMEmirror=SRPMS/ \ |
126 |
|
--uri SMEmirror=http://mirror.contribs.org/releases/testing/$distrel/smeos/SRPMS/ \ |
127 |
|
SRPMS// |
128 |
fi |
fi |
129 |
|
|
130 |
# That's it. |
# That's it. |
|
|
|