[Ubuntu] Change rebar installation to use GitHub releases (#3486)

* Change rebar installation to use gh releases

* Add source $HELPER_SCRIPTS/install.sh

* Add Erlang rebar3 to software readme
This commit is contained in:
Mikhail Timofeev
2021-06-01 18:31:35 +03:00
committed by GitHub
parent dbeeb4df39
commit 2c6cc7ab0d
3 changed files with 17 additions and 3 deletions

View File

@@ -56,6 +56,13 @@ function Get-ErlangVersion {
return "Erlang $erlangVersion (Eshell $shellVersion)"
}
function Get-ErlangRebar3Version {
$result = Get-CommandResult "rebar3 --version"
$result.Output -match "rebar (?<version>(\d+.){2}\d+)" | Out-Null
$rebarVersion = $Matches.version
return "Erlang rebar3 $rebarVersion"
}
function Get-MonoVersion {
$monoVersion = mono --version | Out-String | Take-OutputPart -Part 4
$aptSourceRepo = Get-AptSourceRepository -PackageName "mono"