forked from karawin/Ka-Radio32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate.sh~
56 lines (51 loc) · 1.24 KB
/
generate.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
#!/bin/bash
# Need python3. Install it with pacman -Sy python3
echo style
cp style.css style.ori
gzip style.css
mv style.css.gz style.css
xxd -i style.css > style
#sed -i 's/\[\]/\[\]/g' style
sed -i 's/unsigned/const/g' style
mv style.ori style.css
echo style1
cp style1.css style1.ori
gzip style1.css
mv style1.css.gz style1.css
xxd -i style1.css > style1
#sed -i 's/\[\]/\[\]/g' style1
sed -i 's/unsigned/const/g' style1
mv style1.ori style1.css
echo script
cp script.js script.ori
gzip script.js
mv script.js.gz script.js
xxd -i script.js > script
#sed -i 's/\[\]/\[\]/g' script
sed -i 's/unsigned/const/g' script
mv script.ori script.js
echo index
cp index.html index.htm
python ./css-html-js-minify.py index.htm
gzip index.html
mv index.html.gz index.html
xxd -i index.html > index
#sed -i 's/\[\]/\[\]/g' index
sed -i 's/unsigned/const/g' index
mv index.htm index.html
echo logo
cp logo.png logo.ori
gzip logo.png
mv logo.png.gz logo.png
xxd -i logo.png > logo
#sed -i 's/\[\]/\[\]/g' logo
sed -i 's/unsigned/const/g' logo
mv logo.ori logo.png
echo favicon
cp favicon.png favicon.ori
gzip favicon.png
mv favicon.png.gz favicon.png
xxd -i favicon.png > favicon
#sed -i 's/\[\]/\[\]/g' favicon
sed -i 's/unsigned/const/g' favicon
mv favicon.ori favicon.png