2016-11-23 13:54:22 +04:00
|
|
|
#! /bin/sh
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-04-12 14:55:01 +04:00
|
|
|
script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
|
2017-01-22 04:59:18 +04:00
|
|
|
src_dir="$(dirname "$script_dir")"
|
|
|
|
|
|
|
|
. "$script_dir/version.sh"
|
|
|
|
|
|
|
|
if [ "$(ocaml -vnum)" != "$ocaml_version" ]; then
|
2016-11-23 13:54:22 +04:00
|
|
|
echo ;
|
|
|
|
echo " Unexpected compiler version ($(ocaml -vnum))";
|
2017-01-22 04:59:18 +04:00
|
|
|
echo " You should use ocaml-$ocaml_version.";
|
2016-11-23 13:54:22 +04:00
|
|
|
echo ;
|
|
|
|
exit 1;
|
2016-09-08 21:13:10 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
opam pin --yes add --no-action --dev-repo sodium
|
|
|
|
opam pin --yes add --no-action --dev-repo ocp-ocamlres
|
|
|
|
opam pin --yes add --no-action --dev-repo ocplib-json-typed
|
|
|
|
opam pin --yes add --no-action --dev-repo ocplib-resto
|
|
|
|
## Force opam to take account of the new `tezos-deps.opam`
|
|
|
|
opam pin --yes remove tezos
|
|
|
|
opam pin --yes add --no-action tezos $src_dir
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
opam list --installed depext || opam install depext
|
|
|
|
opam depext tezos
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-10-27 22:45:31 +04:00
|
|
|
opam install tezos --deps-only
|