-
Notifications
You must be signed in to change notification settings - Fork 0
/
biglinux-make-iso-profiles-ci-cd-old.sh
executable file
·166 lines (135 loc) · 6.03 KB
/
biglinux-make-iso-profiles-ci-cd-old.sh
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#!/bin/bash
## create profile biglinux ##
mkdir -p iso-profiles/community/biglinux
cp iso-profiles-biglinux/profile.conf iso-profiles/community/biglinux/
sed -i '/manjaro2/d' iso-profiles/community/biglinux/profile.conf
cp iso-profiles-biglinux/pacman-default.conf iso-profiles/community/biglinux/
cp iso-profiles-biglinux/user-repos.conf iso-profiles/community/biglinux/
cp -r iso-profiles-biglinux/desktop-overlay/ iso-profiles/community/biglinux/
cp -r iso-profiles-biglinux/live-overlay/ iso-profiles/community/biglinux/
# Remove Mhwd
if [ -e "iso-profiles-biglinux/Mhwd-remove" ]; then
grep -v -f iso-profiles-biglinux/Mhwd-remove iso-profiles/shared/Packages-Mhwd > iso-profiles/community/biglinux/Packages-Mhwd
else
cp -f iso-profiles/shared/Packages-Mhwd iso-profiles/community/biglinux/Packages-Mhwd
fi
# Remove Root
if [ -e "iso-profiles-biglinux/Root-remove" ]; then
grep -v -f iso-profiles-biglinux/Root-remove iso-profiles/shared/Packages-Root > iso-profiles/community/biglinux/Packages-Root
else
cp -f iso-profiles/shared/Packages-Root iso-profiles/community/biglinux/Packages-Root
fi
# Remove Live
if [ -e "iso-profiles-biglinux/Live-remove" ]; then
grep -v -f iso-profiles-biglinux/Live-remove iso-profiles/shared/Packages-Live > iso-profiles/community/biglinux/Packages-Live
else
cp -f iso-profiles/shared/Packages-Live iso-profiles/community/biglinux/Packages-Live
fi
# Remove Desktop
if [ -e "iso-profiles-biglinux/Desktop-remove" ]; then
grep -v -f iso-profiles-biglinux/Desktop-remove iso-profiles/shared/Packages-Desktop > iso-profiles/community/biglinux/Packages-Desktop
else
cp -f iso-profiles/shared/Packages-Desktop iso-profiles/community/biglinux/Packages-Desktop
fi
# Add Mhwd
if [ -e "iso-profiles-biglinux/Mhwd-add" ]; then
cat iso-profiles-biglinux/Mhwd-add >> iso-profiles/community/biglinux/Packages-Mhwd
fi
# Add Root
if [ -e "iso-profiles-biglinux/Root-add" ]; then
cat iso-profiles-biglinux/Root-add >> iso-profiles/community/biglinux/Packages-Root
fi
# use mesa-amber ?
if [ "$3" = "amber" ]; then
echo 'mesa-amber
lib32-mesa-amber' >> iso-profiles/community/biglinux/Packages-Root
fi
# Add Live
if [ -e "iso-profiles-biglinux/Live-add" ]; then
# echo '' >> iso-profiles/community/biglinux/Packages-Live
cat iso-profiles-biglinux/Live-add >> iso-profiles/community/biglinux/Packages-Live
fi
# Add Desktop
if [ -e "iso-profiles-biglinux/Desktop-add" ]; then
cat iso-profiles-biglinux/Desktop-add > iso-profiles/community/biglinux/Packages-Desktop
fi
# Add some things from Packages-Desktop
sed -n '/## Printing/,/^$/p' iso-profiles/manjaro/kde/Packages-Desktop >> iso-profiles/community/biglinux/Packages-Desktop
sed -n '/## Xorg Server and Graphics/,/^$/p' iso-profiles/manjaro/kde/Packages-Desktop >> iso-profiles/community/biglinux/Packages-Desktop
sed -n '/## Xorg Input Drivers/,/^$/p' iso-profiles/manjaro/kde/Packages-Desktop >> iso-profiles/community/biglinux/Packages-Desktop
sed -n '/## Misc/,/^$/p' iso-profiles/manjaro/kde/Packages-Desktop >> iso-profiles/community/biglinux/Packages-Desktop
sed -i 's|xf86-input-void||g' iso-profiles/community/biglinux/Packages-Desktop
# find -type f -exec sed -i '/xdg-su/d' {} +
# find -type f -exec sed -i '/xorg-utils/d' {} +
# find -type f -exec sed -i '/xorg-server-utils/d' {} +
# Remove last }
sed -i ':a;$!{N;ba;};s/\(.*\)}/\1/' /usr/lib/manjaro-tools/util-iso-image.sh
# adicionar ao arquivo
echo ' #BigLinux clean
path=$1/usr/share/doc
if [[ -d $path ]]; then
rm -Rf $path/* &> /dev/null
fi
#BigLinux clean
path=$1/usr/share/man
if [[ -d $path ]]; then
rm -Rf $path/* &> /dev/null
fi
#Clean LibreOffice
path=$1/usr/lib/libreoffice/share/config
if [[ -d $path ]]; then
rm -f $path/images_karasa_jaga* &> /dev/null
rm -f $path/images_elementary* &> /dev/null
rm -f $path/images_sukapura* &> /dev/null
rm -f $path/images_colibre_svg.zip &> /dev/null
rm -f $path/images_sifr_dark_svg.zip &> /dev/null
rm -f $path/images_sifr_svg.zip &> /dev/null
rm -f $path/images_breeze_dark_svg.zip &> /dev/null
rm -f $path/images_breeze_svg.zip &> /dev/null
fi
#Clean LibreOffice
path=$1/usr/share/wallpapers
if [[ -d $path ]]; then
rm -Rf $path/Altai
rm -Rf $path/BytheWater
rm -Rf $path/Cascade
rm -Rf $path/ColdRipple
rm -Rf $path/DarkestHour
rm -Rf $path/EveningGlow
rm -Rf $path/Flow
rm -Rf $path/FlyingKonqui
rm -Rf $path/IceCold
rm -Rf $path/Kokkini
rm -Rf $path/Next
rm -Rf $path/Opal
rm -Rf $path/Patak
rm -Rf $path/SafeLanding
rm -Rf $path/summer_1am
rm -Rf $path/Autumn
rm -Rf $path/Canopee
rm -Rf $path/Cluster
rm -Rf $path/ColorfulCups
rm -Rf $path/Elarun
rm -Rf $path/FallenLeaf
rm -Rf $path/Fluent
rm -Rf $path/Grey
rm -Rf $path/Kite
rm -Rf $path/MilkyWay
rm -Rf $path/OneStandsOut
rm -Rf $path/PastelHills
rm -Rf $path/Path
rm -Rf $path/Shell
rm -Rf $path/Volna
fi
}' | tee -a /usr/lib/manjaro-tools/util-iso-image.sh
# Disable remove pkgs cache
sed -i 's|path=$1/var/lib/pacman/sync|path=$1/usr/share/man|'g /usr/lib/manjaro-tools/util-iso-image.sh
# Change in scripts /usr/share/manjaro-tools
mkdir -p /usr/share/manjaro-tools/iso-profiles/shared/biglinux
cp -Rf iso-profiles/community/biglinux/ /usr/share/manjaro-tools/iso-profiles/shared
#bootsplash
sed -i 's|keyboard keymap|keyboard keymap bootsplash-biglinux|g' /usr/share/manjaro-tools/mkinitcpio.conf
#repo biglinux
cp -f iso-profiles-biglinux/pacman-default.conf /usr/share/manjaro-tools/pacman-default.conf
# buildiso -f -p biglinux -b stable -k linux515
#verificar pacote libreoffice-extension-vero, quem sabe empacotar