Update list of installable versions

This commit is contained in:
Akash Manohar J 2014-11-30 15:24:33 +05:30
parent 879d8fa5f5
commit 7b9f905870
2 changed files with 13 additions and 5 deletions

View File

@ -14,7 +14,7 @@ install_erlang() {
cd $(dirname $source_path)
tar zxf $source_path || exit 1
cd $(untar_path $install_type $version)
if [ "$install_type" -ne "version"]
if [ "$install_type" != "version" ]
then
./otp_build autoconf || exit 1
fi
@ -29,7 +29,7 @@ untar_path() {
local install_type=$1
local version=$2
if [ "$install_type" -e "version" ]
if [ "$install_type" = "version" ]
then
echo "$TMPDIR/otp_src_${version}"
else
@ -44,7 +44,7 @@ download_source() {
local download_path=$(get_download_file_path $install_type $version)
local download_url=$(get_download_url $install_type $version)
curl -Lo $download_path $download_url
curl -Lco $download_path $download_url
}

View File

@ -1,11 +1,19 @@
#!/usr/bin/env sh
versions=(
17.3.4
17.3
17.2
17.1
17.0
R16B03-1
R16B03
R16B02
R16B01
R16B
R16A
R15B03-1
R15B02
R15B01
R15B
)
for version in "${versions[@]}"