-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ts-clean.sh
executable file
·45 lines (42 loc) · 1.38 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
#!/bin/bash
#
# ThundeRStorms cleaning script v1.1
#
# XDA@nalas
# Make the source clean
make mrproper
make clean
# Remove unused temporary and old files
rm -f compile_build.log
rm -f builds/*.img
rm -f *.img
rm -f arch/arm64/boot/dts/exynos/*.dtb
rm -f arch/arm64/boot/dts/exynos/*.dtbo
rm -f arch/arm64/boot/dts/samsung/*.dtbo
rm -f arch/arm64/boot/dts/samsung/*.dtbo.reverse.dts
rm -f arch/arm64/boot/dts/exynos/*.dtbo.reverse.dts
rm -f arch/arm64/boot/dts/exynos/*.dtb.reverse.dts
rm -f arch/arm64/boot/dts/samsung/*.dtbo.dtout
rm -f arch/arm64/boot/dts/exynos/*.dtbo.dtout
rm -f arch/arm64/boot/dts/exynos/*.dtb.dtout
rm -f arch/arm64/boot/dts/exynos/*.img
rm -f arch/arm64/boot/dts/samsung/*.img
rm -f out/SM-980F/*.img
rm -f out/SM-980F/*.gz
rm -f out/SM-981B/*.img
rm -f out/SM-981B/*.gz
rm -f out/SM-985F/*.img
rm -f out/SM-985F/*.gz
rm -f out/SM-986B/*.img
rm -f out/SM-986B/*.gz
rm -f out/SM-988B/*.img
rm -f out/SM-988B/*.gz
#rm -rf drivers/kernelsu
# Locate placeholder in empty Ramdisk folders
echo "" > $PWD/builds/ramdisk/ramdisk/avb/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/debug_ramdisk/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/dev/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/mnt/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/proc/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/sys/.placeholder
echo "" > $PWD/builds/ramdisk/ramdisk/.backup/.placeholder