-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
clean_usr_local.sh
43 lines (35 loc) 路 1.29 KB
/
clean_usr_local.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
# Cleans /usr/local for the install of mac deps, deleting things that are not
# required, or things that will be replaced with something else
# First clean up some homebrew stuff we don't want linked in
# ----------------------------------------------------------
rm -rf /usr/local/bin/curl
rm -rf /usr/local/opt/curl
rm -rf /usr/local/bin/git
rm -rf /usr/local/opt/git
# Use the apple provided curl, and git.
# The homebrew ones depend on libs we don't want to include.
# ln -s /usr/bin/curl /usr/local/bin/curl
ln -s /usr/bin/git /usr/local/bin/git
rm -rf /usr/local/lib/libtiff*
rm -rf /usr/local/lib/libsndfile*
rm -rf /usr/local/lib/glib*
rm -rf /usr/local/lib/libglib*
rm -rf /usr/local/lib/libgthread*
rm -rf /usr/local/lib/libintl*
rm -rf /usr/local/lib/libbrotlidec*
rm -rf /usr/local/lib/libopus*
rm -rf /usr/local/opt/freetype
rm -rf /usr/local/Cellar/libtiff
rm -rf /usr/local/Cellar/libsndfile
rm -rf /usr/local/Cellar/glib
rm -rf /usr/local/Cellar/brotli
rm -rf /usr/local/Cellar/pcre
rm -rf /usr/local/Cellar/opus
rm -rf /usr/local/Cellar/freetype
rm -rf /usr/local/opt/gettext
rm -rf /usr/local/share/doc/tiff-*
rm -rf /usr/local/share/doc/libsndfile
rm -rf /usr/local/share/glib-2.0
rm -rf /usr/local/share/gdb/auto-load
rm -rf /usr/local/include/glib-2.0
rm -rf /usr/local/include/gio-unix-2.0