-
Notifications
You must be signed in to change notification settings - Fork 2
/
ts-clean.sh
executable file
·124 lines (111 loc) · 5.34 KB
/
ts-clean.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
#!/bin/bash
#
# Thanks to djb77
#
# Thanks to MoRoGoku for Cleaning Script
#
# ThundeRStorms cleaning script v1.6
echo ""
echo "Cleaning script for ThunderStorms kernel"
echo ""
echo "Start cleaning..."
echo ""
# Clean Build Data
make clean
make ARCH=arm64 distclean
rm -f ./Edge_build.log
rm -f ./Flat_build.log
# Remove Release files
rm -f $PWD/builds/*.zip
rm -rf $PWD/builds/temp
rm -rf $PWD/builds/temp2
rm -f $PWD/arch/arm64/configs/tmp_defconfig
# Removed Created dtb Folder
rm -rf $PWD/arch/arm64/boot/dtb
# Recreate Ramdisk Placeholders
echo "" > $PWD/builds/TW-OREO/ramdisk/acct/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/cache/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/config/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/data/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/dev/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/lib/modules/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/proc/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/storage/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/sys/.placeholder
echo "" > $PWD/builds/TW-OREO/ramdisk/system/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/acct/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/cache/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/config/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/data/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/dev/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/keydata/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/keyrefuge/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/lib/modules/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/omr/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/proc/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/storage/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/sys/.placeholder
echo "" > $PWD/builds/TW-PIE/ramdisk/system/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/acct/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/config/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/data/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/dev/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/oem/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/proc/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/storage/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/sys/.placeholder
echo "" > $PWD/builds/LOS16/ramdisk/system/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/apex/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/debug_ramdisk/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/dev/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/proc/.placeholder
echo "" > $PWD/builds/LOS17/ramdisk/sys/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/acct/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/cache/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/carrier/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/config/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/data/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/dev/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/dqmdbg/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/efs/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/keydata/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/keyrefuge/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/lib/modules/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/mnt/.placeholder
# echo "" > $PWD/builds/TREBLE-Q/ramdisk/odm/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/oem/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/omr/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/proc/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/storage/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/sys/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/system/.placeholder
echo "" > $PWD/builds/TREBLE-Q/ramdisk/vendor/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/acct/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/cache/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/carrier/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/config/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/data/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/dev/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/dqmdbg/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/efs/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/keydata/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/keyrefuge/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/lib/modules/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/oem/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/omr/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/proc/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/storage/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/sys/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/system/.placeholder
echo "" > $PWD/builds/TREBLE-P/ramdisk/vendor/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/apex/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/debug_ramdisk/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/dev/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/proc/.placeholder
echo "" > $PWD/builds/OneUI-Q/ramdisk/sys/.placeholder