blob: 6f70799ac19a77a8678a7699bf597b8d94e7d4a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/bin/bash
arch=$1
distrib=Mageia
version=6
homebcd=/home/bcd/build_bcd
bin=$homebcd/bcd
pieces=$homebcd/pieces/iso
build=$homebcd/build/$distrib-$version-$arch
# (tmb) move symlink depending on arch
pushd /home/bcd/build_bcd/bcd/BCD
if [ "$arch" = "x86_64" ]
then
ln -sf Genisoimage.pm.x86_64 Genisoimage.pm
else
ln -sf Genisoimage.pm.i586 Genisoimage.pm
fi
popd
$bin/bcd.pl dvd_free-$arch.xml all noiso
#rm -rf $build/$arch/isolinux
#cp -r $pieces/dvd/isolinux $build
mv $homebcd/build/$distrib-$version-$arch/$arch/isolinux $homebcd/build/$distrib-$version-$arch
cp $pieces/dvd/$arch.cfg $build/isolinux/isolinux.cfg
cp $pieces/dvd/tools.cfg $build/isolinux/
rm -f $build/isolinux/i386.cfg
rm -f $build/$arch/install/images/*nonfree*
if [ "$arch" = "x86_64" ]
then
cd $build
tar -xvJf $pieces/DVD-EFI.tar.xz
cd -
rm -f $build/isolinux/$arch/all-nonfree.rdz
else
rm -f $build/isolinux/i386.cfg
perl -pi -e 's/i586/i386/' $build/isolinux/isolinux.cfg
rm -f $build/isolinux/i386/all-nonfree.rdz
fi
cp -f $pieces/message $build/isolinux/bootlogo
rm -rf $homebcd/build/$distrib-$version-$arch/$arch/install/images
$bin/bcd.pl dvd_free-$arch.xml iso
date > $homebcd/iso/$distrib-$version-$arch/DATE.txt
cd $homebcd/iso/$distrib-$version-$arch
for i in md5 sha1 sha512
do
${i}sum $distrib-$version-$arch-DVD.iso > $distrib-$version-$arch-DVD.iso.$i
done
|