Something went wrong. Try again.
objective categorical abstract machine language personal data server
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839#!/usr/bin/env shset -euocaml_version="5.4.1"dune_pin="git+https://github.com/futurGH/dune#50fd4c83186300033d30139c82f0e3d288278de2"dune_version_marker="50fd4c8"if ! command -v opam >/dev/null 2>&1; then echo "opam is required. Install it from https://opam.ocaml.org/doc/Install.html" >&2 exit 1fiif [ -d _opam ]; then eval "$(opam env --switch=. --set-switch)" current_ocaml="$(ocamlc -version 2>/dev/null || true)"else current_ocaml=""fiif [ "$current_ocaml" != "$ocaml_version" ]; then if [ -d _opam ]; then opam switch remove . -y fi opam switch create . "$ocaml_version" --no-install eval "$(opam env --switch=. --set-switch)"fiif ! command -v dune >/dev/null 2>&1 || ! dune --version | grep -q "$dune_version_marker"; then opam pin add dune "$dune_pin" -y if ! dune --version | grep -q "$dune_version_marker"; then opam reinstall dune -y fifidune pkg lockdune build