From 533913fd3623d990ca5fe3c5b2119c005d6db7d0 Mon Sep 17 00:00:00 2001 From: John David Pressman Date: Fri, 31 May 2019 21:09:08 -0700 Subject: [PATCH] Tweak make scripts based on observations in virtual machine --- src/build-deps.sh | 4 +++- src/install.sh | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/build-deps.sh b/src/build-deps.sh index bbfd9c3cf..821186320 100644 --- a/src/build-deps.sh +++ b/src/build-deps.sh @@ -1,6 +1,8 @@ #!/bin/sh +opam switch create .. ocaml-base-compiler.4.06.1 +eval $(opam env) vendors/opam-repository-tools/rewrite-local-opam-repository.sh opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository-local-generated/" -opam install ocp-indent merlin alcotest-lwt crowbar +opam install -y ocp-indent merlin alcotest-lwt crowbar opam user-setup install opam install -y --build-test --deps-only ./src/ diff --git a/src/install.sh b/src/install.sh index 99d86d003..78e7c42e5 100644 --- a/src/install.sh +++ b/src/install.sh @@ -1,6 +1,6 @@ -add-apt-repository ppa:avsm/ppa -apt update -apt-get install opam mercurial darcs make m4 gcc libev-dev libgmp-dev pkg-config libhidapi-dev -opam init --bare -y -y +#! /bin/sh +sudo add-apt-repository -y ppa:avsm/ppa +sudo apt-get update +sudo apt-get install -y opam mercurial darcs make m4 gcc libev-dev libgmp-dev pkg-config libhidapi-dev +opam init --bare -a +