1
0
mirror of https://github.com/erlang/rebar3.git synced 2025-04-19 02:04:00 +03:00
rebar3/vendor_hex_core.sh
Fred Hebert 7f6c25082f Re-Vendor hex_core at v0.10.0
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.
2024-06-11 15:00:54 +00:00

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