summaryrefslogtreecommitdiffstats
path: root/files/mga_rpms/update_media.sh
blob: 0334eec0e12fc6f5148e358da4f55068b0429b47 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

bcdmedia=/home/bcd/build_bcd/pieces/cauldron

# create dirs if non-existant
mkdir -p {i586,x86_64}/mga_rpms/{core,nonfree}/media_info

# clean dirs
rm -f {i586,x86_64}/mga_rpms/{core,nonfree}/*.rpm
rm -f {i586,x86_64}/mga_rpms/{core,nonfree}/media_info/*

# add grub2 stuff
cp $bcdmedia/i586/media/core/release/grub2-2*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/grub2-common-2*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/grub2-efi-2*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/grub2-mageia-theme-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/os-prober-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/efibootmgr-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/efivar-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/libefivar0-*.rpm i586/mga_rpms/core/

cp $bcdmedia/x86_64/media/core/release/grub2-2*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/grub2-common-2*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/grub2-efi-2*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/grub2-mageia-theme-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/os-prober-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/efibootmgr-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/efivar-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/lib64efivar0-*.rpm x86_64/mga_rpms/core/

# add dkms stuff
cp $bcdmedia/i586/media/core/release/libstdc++-devel*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/dkms-2*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/gcc-5*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/gcc-cpp-5*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/glibc-devel*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/isl-0*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/kernel-desktop586-devel-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/kernel-userspace-headers-*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/libisl15-0*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/libmpc3-1*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/libncurses-devel*.rpm i586/mga_rpms/core/
cp $bcdmedia/i586/media/core/release/make-4*.rpm i586/mga_rpms/core/

cp $bcdmedia/x86_64/media/core/release/libstdc++-devel*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/dkms-2*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/gcc-5*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/gcc-cpp-5*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/glibc-devel*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/isl-0*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/kernel-desktop-devel-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/kernel-userspace-headers-*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/lib64isl15-0*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/lib64mpc3-1*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/lib64ncurses-devel*.rpm x86_64/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/make-4*.rpm x86_64/mga_rpms/core/

# add broadcom wireless configs
cp $bcdmedia/i586/media/core/release/broadcom-*-config-*.rpm i586/mga_rpms/core/
cp $bcdmedia/x86_64/media/core/release/broadcom-*-config-*.rpm x86_64/mga_rpms/core/

# add broadcom-wl
cp $bcdmedia/i586/media/nonfree/release/broadcom-wl-common*.rpm i586/mga_rpms/nonfree/
cp $bcdmedia/i586/media/nonfree/release/dkms-broadcom-wl-*.rpm i586/mga_rpms/nonfree/

cp $bcdmedia/x86_64/media/nonfree/release/broadcom-wl-common-*.rpm x86_64/mga_rpms/nonfree/
cp $bcdmedia/x86_64/media/nonfree/release/dkms-broadcom-wl-*.rpm x86_64/mga_rpms/nonfree/

# add repo pubkeys
cp $bcdmedia/i586/media/core/release/media_info/pubkey i586/mga_rpms/core/media_info/
cp $bcdmedia/x86_64/media/core/release/media_info/pubkey x86_64/mga_rpms/core/media_info/

cp $bcdmedia/i586/media/nonfree/release/media_info/pubkey i586/mga_rpms/nonfree/media_info/
cp $bcdmedia/x86_64/media/nonfree/release/media_info/pubkey x86_64/mga_rpms/nonfree/media_info/

# create hdlists
genhdlist2 i586/mga_rpms/core
genhdlist2 i586/mga_rpms/nonfree
genhdlist2 x86_64/mga_rpms/core
genhdlist2 x86_64/mga_rpms/nonfree