forked from ralph-irving/tcz-jivelite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
split-jivelite-tcz.sh
executable file
·87 lines (65 loc) · 2.5 KB
/
split-jivelite-tcz.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
#!/bin/bash
if [ -d jivelite-build ]; then
rm -rf jivelite-build
fi
unsquashfs jivelite_touch.tcz
mv squashfs-root jivelite-build
rm -rf jivelite-build/opt/jivelite/bin/{lua,luac} jivelite-build/opt/jivelite/lib/liblua.so jivelite-build/opt/jivelite/share/lua jivelite-build/opt/jivelite/lib/lua
if [ -f hdskins.tar.gz ]; then
rm hdskins.tar.gz
fi
tar -czf hdskins.tar.gz jivelite-build/opt/jivelite/share/jive/applets/{HDGridSkin,HDSkin}
if [ -f wqvgaskins.tar.gz ]; then
rm wqvgaskins.tar.gz
fi
tar -czf wqvgaskins.tar.gz jivelite-build/opt/jivelite/share/jive/applets/{WQVGAlargeSkin,WQVGAsmallSkin}
if [ -f qvgaskins.tar.gz ]; then
rm qvgaskins.tar.gz
fi
tar -czf qvgaskins.tar.gz jivelite-build/opt/jivelite/share/jive/applets/{QVGAbaseSkin,QVGAlandscapeSkin,QVGAportraitSkin,QVGA240squareSkin}
rm -rf jivelite-build/opt/jivelite/share/jive/applets/{HDGridSkin,HDSkin}
rm -rf jivelite-build/opt/jivelite/share/jive/applets/{WQVGAlargeSkin,WQVGAsmallSkin}
rm -rf jivelite-build/opt/jivelite/share/jive/applets/{QVGAbaseSkin,QVGAlandscapeSkin,QVGAportraitSkin,QVGA240squareSkin}
cp -p pcp.png jivelite-build/opt/jivelite/share/jive/jive/splash.png
if [ -f pcp-jivelite.tcz ]; then
rm pcp-jivelite.tcz
fi
mksquashfs jivelite-build pcp-jivelite.tcz -all-root -no-progress
md5sum pcp-jivelite.tcz > pcp-jivelite.tcz.md5.txt
cd jivelite-build
find * -not -type d > ../pcp-jivelite.tcz.list
cd ..
rm -rf jivelite-build
tar -xzf hdskins.tar.gz
if [ -f pcp-jivelite_hdskins.tcz ]; then
rm pcp-jivelite_hdskins.tcz
fi
mksquashfs jivelite-build pcp-jivelite_hdskins.tcz -all-root -no-progress
md5sum pcp-jivelite_hdskins.tcz > pcp-jivelite_hdskins.tcz.md5.txt
cd jivelite-build
find * -not -type d > ../pcp-jivelite_hdskins.tcz.list
cd ..
rm -rf jivelite-build
tar -xzf wqvgaskins.tar.gz
if [ -f pcp-jivelite_wqvgaskins.tcz ]; then
rm pcp-jivelite_wqvgaskins.tcz
fi
mksquashfs jivelite-build pcp-jivelite_wqvgaskins.tcz -all-root -no-progress
md5sum pcp-jivelite_wqvgaskins.tcz > pcp-jivelite_wqvgaskins.tcz.md5.txt
cd jivelite-build
find * -not -type d > ../pcp-jivelite_wqvgaskins.tcz.list
cd ..
rm -rf jivelite-build
tar -xzf qvgaskins.tar.gz
if [ -f pcp-jivelite_qvgaskins.tcz ]; then
rm pcp-jivelite_qvgaskins.tcz
fi
mksquashfs jivelite-build pcp-jivelite_qvgaskins.tcz -all-root -no-progress
md5sum pcp-jivelite_qvgaskins.tcz > pcp-jivelite_qvgaskins.tcz.md5.txt
cd jivelite-build
find * -not -type d > ../pcp-jivelite_qvgaskins.tcz.list
cd ..
rm -rf jivelite-build
rm hdskins.tar.gz
rm wqvgaskins.tar.gz
rm qvgaskins.tar.gz