Skip to content

Instantly share code, notes, and snippets.

@bsmr
Created June 23, 2015 11:24
Show Gist options
  • Select an option

  • Save bsmr/e4d4ee3b23dabdb588a9 to your computer and use it in GitHub Desktop.

Select an option

Save bsmr/e4d4ee3b23dabdb588a9 to your computer and use it in GitHub Desktop.

Revisions

  1. bsmr created this gist Jun 23, 2015.
    25 changes: 25 additions & 0 deletions setup-erlang-elixir
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    cd /opt/erlang/
    echo $LANG
    export OLD_LANG=$LANG
    export LANG=C
    cd /opt/erlang/git/otp/
    git fetch origin
    git checkout maint
    git pull origin maint
    git checkout OTP-18.0-rc2
    git checkout -b build-OTP-18.0-rc2
    export MAKEFLAGS="-j9"
    time ./otp_build setup --prefix=/opt/erlang/otp/R18/0rc2
    nice make clean
    nice make all
    nice make install
    export PATH=/opt/erlang/otp/active/bin:$PATH
    nice make docs
    nice make install-docs
    export LANG=$OLD_LANG
    cd ../elixir/
    git fetch origin
    git pull origin master
    PREFIX=/opt/erlang/elixir/1.1.git make clean
    PREFIX=/opt/erlang/elixir/1.1.git make test
    PREFIX=/opt/erlang/elixir/1.1.git make install