Updated to `Erlang 25.3.0`
This commit is contained in:
parent
c1ed7a7118
commit
825cd586e1
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
|
||||
cd build
|
||||
|
||||
curl "http://erlang.org/download/otp_src_25.3.tar.gz" -o erlang.tar.gz
|
||||
tar xzf erlang.tar.gz --strip-components=1
|
||||
rm erlang.tar.gz
|
||||
|
||||
export ERL_TOP=$(pwd)
|
||||
./configure --prefix "$PREFIX"
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf build
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "erlang",
|
||||
"version": "25.3.0",
|
||||
"aliases": ["erl", "escript"]
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
escript "$@"
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
main(_) ->
|
||||
io:format("OK~n").
|
Loading…
Reference in New Issue