elixir.sh 579 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists $IROOT/elixir.installed)
  3. [ ! "$RETCODE" == 0 ] || { . $IROOT/elixir.installed; return 0; }
  4. fw_depends erlang
  5. source $IROOT/erlang.installed
  6. VERSION="1.0.4-1"
  7. RELEASE="trusty"
  8. ARCH="amd64"
  9. fw_get http://packages.erlang-solutions.com/site/esl/elixir/FLAVOUR_2_download/elixir_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb
  10. dpkg -x elixir_${VERSION}~ubuntu~${RELEASE}_${ARCH}.deb $IROOT/elixir
  11. $IROOT/erlang/usr/lib/erlang/Install -minimal $IROOT/erlang/usr/lib/erlang
  12. echo "export PATH=\$IROOT/elixir/usr/local/bin:\$PATH" >> $IROOT/elixir.installed