forked from asdf-vm/asdf-erlang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Just for testing purposes.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,9 +58,11 @@ macos_install_from_binary() { | |
|
||
# We're not keeping the same directory structure as Homebrew. | ||
local replacement_pattern="@@HOMEBREW_CELLAR@@/erlang/$ASDF_INSTALL_VERSION/lib/erlang" | ||
|
||
local brew_prefix="/usr/local" | ||
# Replace the homebrew URL with something compatible with asdf | ||
grep -rl --null "$replacement_pattern" "$ASDF_DOWNLOAD_PATH/lib/erlang" | xargs -0 sed -i '' "s:$replacement_pattern:$ASDF_INSTALL_PATH:g" | ||
#grep -rl --null "@@HOMEBREW_PREFIX@@" "$ASDF_DOWNLOAD_PATH/lib/erlang" | xargs -0 sed -i '' "s:@@HOMEBREW_PREFIX@@:$brew_prefix:g" | ||
install_name_tool -change "@@HOMEBREW_PREFIX@@/opt/[email protected]/lib/libcrypto.1.1.dylib" "/usr/local/opt/[email protected]/lib/libcrypto.1.1.dylib" "$ASDF_DOWNLOAD_PATH/lib/erlang/lib/crypto-4.9/priv/lib/crypto.so" | ||
|
||
# Move from download to install | ||
# In the future, maybe copy would be better, but I think keeping downloads is a bad design. | ||
|