Skip to content

Commit

Permalink
Merge pull request #4 from AgilionApps/ap/elixir-1.0.0
Browse files Browse the repository at this point in the history
Add elixir 1.0.0 recipe.
  • Loading branch information
alanpeabody committed Sep 12, 2014
2 parents f3a488f + 4416a0f commit ed0733f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
File renamed without changes.
23 changes: 23 additions & 0 deletions scripts/elixir-1.0.0.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ed0733f

Please sign in to comment.