Skip to content

Commit

Permalink
rebar3: use ERL_INCLUDE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
mbekkomo committed Apr 7, 2024
1 parent fc9d238 commit ab89e1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/rebar3/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ TERMUX_PKG_PLATFORM_INDEPENDENT=true

termux_step_make() {
set -x
ESCRIPT_FLAGS=()
export ERL_INCLUDE_PATH=""
for path in "$TERMUX_PREFIX/lib/erlang/lib/"*; do
ESCRIPT_FLAGS+=("-pa" "$path/include" "-pa" "$path/ebin")
ERL_INCLUDE_PATH+="$path/include;$path/ebin;"
done
escript "${ESCRIPT_FLAGS[@]}" bootstrap
escript bootstrap
install -Dm755 -t "${TERMUX_PREFIX}/bin" rebar3
set +x
}

0 comments on commit ab89e1d

Please sign in to comment.