ligo/scripts/install_build_deps.sh

23 lines
491 B
Bash
Raw Normal View History

#! /bin/sh
2016-09-08 21:13:10 +04:00
script_dir="$(cd "$(dirname "$0")" && echo "$(pwd -P)/")"
src_dir="$(dirname "$script_dir")"
. "$script_dir"/version.sh
if [ "$(ocaml -vnum)" != "$ocaml_version" ]; then
echo ;
echo " Unexpected compiler version ($(ocaml -vnum))";
echo " You should use ocaml-$ocaml_version.";
echo ;
exit 1;
2016-09-08 21:13:10 +04:00
fi
"$script_dir"/opam-unpin.sh
. "$script_dir"/opam-pin.sh
2016-09-08 21:13:10 +04:00
opam list --installed depext || opam install depext
opam depext $packages
2016-09-08 21:13:10 +04:00
opam install $packages --deps-only