Created
January 17, 2018 17:09
-
-
Save egregius313/e19907c628e47cb3b500923aa520bc38 to your computer and use it in GitHub Desktop.
Bootstrap an OCaml Installation on a Debian or OSX system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PKG_MGR=$(which apt-get brew apt | head -n1) | |
sudo $PKG_MGR update | |
sudo $PKG_MGR install -y opam | |
opam update | |
opam install core | |
if [[ $PKG_MGR =~ apt ]] | |
then | |
sudo $PKG_MGR install -y utop | |
elif [[ $PKG_MGR =~ brew ]] | |
then | |
opam install -y utop | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment