-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcleanup.sh
executable file
·50 lines (44 loc) · 2.46 KB
/
cleanup.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
#!/bin/bash
# Remove non-public sources
rm -rf src/swe/engine/java/src/com/
rm -rf src/swe/engine/java/src/org/
rm -rf src/content/public/android/java/src/com/
# Remove qualcomm proprietary libraries
rm -f src/third_party/libsweadrenoext/lib/libsweadrenoext_plugin.so
rm -f src/third_party/libnetxt/lib/target/libgetzip_plugin.so
rm -f src/third_party/libnetxt/lib/target/libpp_proc_plugin.so
rm -f src/third_party/libnetxt/lib/target/libqmodem_plugin.so
rm -f src/third_party/libnetxt/lib/target/libredirect_plugin.so
rm -f src/third_party/libnetxt/lib/target/libspl_proc_plugin.so
rm -f src/third_party/libnetxt/lib/target/libtcp_connections_plugin.so
rm -f src/third_party/libnetxt/lib/target/libtcp_fin_aggregation_plugin.so
# Remove non-buildable files
rm -rf open/
rm -rf prebuilt/
rm -rf src/third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.4.3/
rm -rf src/third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.7/
rm -rf src/third_party/android_tools/ndk/toolchains/arm-linux-androideabi-clang3.1/
rm -rf src/third_party/android_tools/ndk/toolchains/arm-linux-androideabi-clang3.2/
rm -rf src/third_party/android_tools/ndk/toolchains/llvm-3.1/
rm -rf src/third_party/android_tools/ndk/toolchains/llvm-3.2/
rm -rf src/third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.4.3/
rm -rf src/third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.6/
rm -rf src/third_party/android_tools/ndk/toolchains/mipsel-linux-android-4.7/
rm -rf src/third_party/android_tools/ndk/toolchains/mipsel-linux-android-clang3.1/
rm -rf src/third_party/android_tools/ndk/toolchains/mipsel-linux-android-clang3.2/
rm -rf src/third_party/android_tools/ndk/toolchains/x86-4.4.3/
rm -rf src/third_party/android_tools/ndk/toolchains/x86-4.6/
rm -rf src/third_party/android_tools/ndk/toolchains/x86-4.7/
rm -rf src/third_party/android_tools/ndk/toolchains/x86-clang3.1/
rm -rf src/third_party/android_tools/ndk/toolchains/x86-clang3.2/
rm -rf src/third_party/hunspell_dictionaries/
rm -rf src/third_party/llvm-snapdragon/
rm -rf src/third_party/WebKit/LayoutTests/
rm -rf src/third_party/WebKit/ManualTests/
rm -rf src/third_party/WebKit/PerformanceTests/
# Remove non-buildable files except gyp or gypi
find src/chrome/test/ -type f ! \( -name "*.gyp" -o -name "*.gypi" \) -exec rm {} \;
find src/third_party/trace-viewer/ -type f ! \( -name "*.gyp" -o -name "*.gypi" \) -exec rm {} \;
# Remove git dirs
find . -name ".git" -exec rm -rf {} \;
find . -name ".gitignore" -exec rm -f {} \;