Skip to content

Commit

Permalink
Update metacall.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga authored Aug 23, 2024
1 parent be2aef8 commit d79417a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,13 @@ def install
# debug = "set -euxo pipefail\n"

metacall_extra = [
"SCRIPT_DIR=$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\" )\" &> /dev/null && pwd)\n",
"PREFIX=$(dirname \"${SCRIPT_DIR}\")\n",
"SCRIPT_DIR=$(cd -- \"$(dirname -- \"${BASH_SOURCE[0]}\")\" &> /dev/null && pwd)\n",
"PARENT=$(dirname \"${SCRIPT_DIR}\")\n",
"if [ -f \"${PARENT}/metacallcli\" ]; then\n",
" PREFIX=\"${PARENT}\"\n",
"else\n",
" PREFIX=\"${PARENT}/Cellar/metacall/#{version}\"\n",
"fi\n",
"export LOADER_LIBRARY=\"${PREFIX}/lib\"\n",
"export SERIAL_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
"export DETOUR_LIBRARY_PATH=\"${PREFIX}/lib\"\n",
Expand Down

0 comments on commit d79417a

Please sign in to comment.