mirror of
https://github.com/erlang/rebar3.git
synced 2025-04-19 02:04:00 +03:00
This required some manual patching of the gpb plugin and lib versions but the rest is unchanged. Also the min version gets bumped to OTP-25, and some adapting was required in `rebar_packages` due to a format change.
19 lines
395 B
Bash
Executable File
19 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ -z "$1" ]]; then
|
|
echo "Usage: vendor_hex_core.sh PATH_TO_HEX_CORE"
|
|
exit 1
|
|
fi
|
|
|
|
REBAR3_TOP=$(pwd)/apps/rebar
|
|
export REBAR3_TOP
|
|
pushd "$1"
|
|
touch proto/* # force re-generation of protobuf elements
|
|
TARGET_ERLANG_VERSION=25
|
|
export TARGET_ERLANG_VERSION
|
|
rebar3 as dev compile
|
|
./vendor.sh src r3_
|
|
find src -regex '.*r3_.*' -exec mv -f {} "$REBAR3_TOP/src/vendored" \;
|
|
popd
|