44# First clean up some homebrew stuff we don't want linked in
55# ----------------------------------------------------------
66
7- rm -rf /usr/local/bin/curl
8- rm -rf /usr/local/opt/curl
9- rm -rf /usr/local/bin/git
10- rm -rf /usr/local/opt/git
7+ rm -rf /usr/local/bin/curl /usr/local/opt/curl /opt/homebrew/bin/curl
8+ rm -rf /usr/local/bin/git /usr/local/opt/git /opt/homebrew/bin/git
119# Use the apple provided curl, and git.
1210# The homebrew ones depend on libs we don't want to include.
1311# ln -s /usr/bin/curl /usr/local/bin/curl
1412ln -s /usr/bin/git /usr/local/bin/git
13+ ln -s /usr/bin/git /opt/homebrew/bin/git
1514
1615rm -rf /usr/local/lib/libtiff*
1716rm -rf /usr/local/lib/libzstd*
@@ -23,16 +22,17 @@ rm -rf /usr/local/lib/libgthread*
2322rm -rf /usr/local/lib/libintl*
2423rm -rf /usr/local/lib/libbrotlidec*
2524rm -rf /usr/local/lib/libopus*
26- rm -rf /usr/local/opt/freetype
25+ rm -rf /usr/local/lib/freetype*
26+ rm -rf /usr/local/opt/freetype*
2727
28- rm -rf /usr/local/Cellar/libtiff
29- rm -rf /usr/local/Cellar/libsndfile
30- rm -rf /usr/local/Cellar/glib
31- rm -rf /usr/local/Cellar/brotli
32- rm -rf /usr/local/Cellar/pcre*
33- rm -rf /usr/local/Cellar/opusfile
34- rm -rf /usr/local/Cellar/opus
35- rm -rf /usr/local/Cellar/freetype
28+ rm -rf /usr/local/Cellar/libtiff /opt/homebrew/Cellar/libtiff
29+ rm -rf /usr/local/Cellar/libsndfile /opt/homebrew/Cellar/libsndfile
30+ rm -rf /usr/local/Cellar/glib /opt/homebrew/Cellar/glib
31+ rm -rf /usr/local/Cellar/brotli /opt/homebrew/Cellar/brotli
32+ rm -rf /usr/local/Cellar/pcre* /opt/homebrew/Cellar/pcre *
33+ rm -rf /usr/local/Cellar/opusfile /opt/homebrew/Cellar/opusfile
34+ rm -rf /usr/local/Cellar/opus /opt/homebrew/Cellar/opus
35+ rm -rf /usr/local/Cellar/freetype* /opt/homebrew/Cellar/freetype *
3636
3737rm -rf /usr/local/share/doc/tiff-*
3838rm -rf /usr/local/share/doc/libsndfile
0 commit comments