From 4416a0f659ffddb8ac44d7845e0aa6e5edd2600b Mon Sep 17 00:00:00 2001 From: Alan Peabody Date: Thu, 11 Sep 2014 21:39:27 -0400 Subject: [PATCH] Add elixir 1.0.0 recipe. Also moves old elixir to 0.15.0. --- scripts/{elixir.sh => elixir-0.15.0.sh} | 0 scripts/elixir-1.0.0.sh | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+) rename scripts/{elixir.sh => elixir-0.15.0.sh} (100%) create mode 100644 scripts/elixir-1.0.0.sh diff --git a/scripts/elixir.sh b/scripts/elixir-0.15.0.sh similarity index 100% rename from scripts/elixir.sh rename to scripts/elixir-0.15.0.sh diff --git a/scripts/elixir-1.0.0.sh b/scripts/elixir-1.0.0.sh new file mode 100644 index 0000000..c262d61 --- /dev/null +++ b/scripts/elixir-1.0.0.sh @@ -0,0 +1,23 @@ +# Installs Elixir from github cloned source. +# Requires erlang.sh +# add to Vagrantfile: +# config.vm.provision 'shell', path: 'erlang.sh' +# config.vm.provision 'shell', privileged: false, path: 'elixir-1.0.0.sh' + +if [ -d /home/vagrant/elixir ] ; then + echo 'Elixir already installed' +else + sudo apt-get install make -y + cd ~ + git clone https://github.com/elixir-lang/elixir.git + cd elixir + git checkout v1.0.0 + make clean + make +fi + +if grep -lq 'elixir/bin' /home/vagrant/.bashrc ; then + echo 'Elixir already added to path' +else + echo 'export PATH=/home/vagrant/elixir/bin:$PATH' >> /home/vagrant/.bashrc +fi