Skip to content

Instantly share code, notes, and snippets.

@LDVSOFT
Last active November 11, 2016 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LDVSOFT/ea030ba8ec24f12c8c579522bd99e90a to your computer and use it in GitHub Desktop.
Save LDVSOFT/ea030ba8ec24f12c8c579522bd99e90a to your computer and use it in GitHub Desktop.
Install everything! WARNING: Modifiles a lot of stuff in home directory!
#!/bin/bash
if [[ "$1" == "ldvsoft" ]] ; then
if [[ `lsb_release -cs` != "xenial" ]] ; then
echo "Script designed to run on Ubuntu 16.04 (xenial)"
exit 1
fi
sudo add-apt-repository -y ppa:lapshin-dv/ppa
sudo apt-get update
sudo apt-get install -y aptitude ldvsoft-env-tmux ldvsoft-env-bash-prompt
fi
sudo apt-get install -y m4 git g++-multilib
sudo apt-get install -y --no-install-recommends opam
if dpkg --compare-versions 1.2.2 gt `opam --version` ; then
echo "This Debian-like release has too old opam. Install it manually :("
exit 1
fi
opam init --compiler=4.03.0 -y
opam config setup -u --profile
eval `opam config env`
opam pin add logger https://github.com/dboulytchev/logger.git -y -n
opam pin add GT https://github.com/dboulytchev/GT.git -y -n
opam pin add ostap https://github.com/dboulytchev/ostap.git -y -n
opam pin add ocanren https://github.com/dboulytchev/ocanren.git -y -n
opam pin add camlp5 https://github.com/kakadu/camlp5.git -y -n
opam install GT -y
opam install ostap -y
opam install ocanren -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment