aboutsummaryrefslogtreecommitdiffstats
path: root/kerl
diff options
context:
space:
mode:
authorILYA Khlopotov <[email protected]>2014-04-14 09:32:17 -0700
committerILYA Khlopotov <[email protected]>2014-04-14 09:32:17 -0700
commitddf335067ec0c33cf2124782c5e11fa83c0d75d6 (patch)
tree16f52700a1e5a4a2cf82922d1a9b68913da40752 /kerl
parentb146970f8f37cb8404a187c9cdf1b42e0d2cd61d (diff)
downloadkerl-ddf335067ec0c33cf2124782c5e11fa83c0d75d6.tar.gz
kerl-ddf335067ec0c33cf2124782c5e11fa83c0d75d6.tar.bz2
kerl-ddf335067ec0c33cf2124782c5e11fa83c0d75d6.zip
Support new erlang's release naming convention when we get list of releases
Diffstat (limited to 'kerl')
-rwxr-xr-xkerl4
1 files changed, 3 insertions, 1 deletions
diff --git a/kerl b/kerl
index 8194468..6a2112e 100755
--- a/kerl
+++ b/kerl
@@ -128,7 +128,9 @@ get_releases()
{
curl -L -s $ERLANG_DOWNLOAD_URL/ | \
sed $SED_OPT -e 's/^.*<[aA] [hH][rR][eE][fF]=\"\/download\/otp_src_([-0-9A-Za-z_.]+)\.tar\.gz\">.*$/\1/' \
- -e '/^R1|^[0-9]/!d'
+ -e '/^R1|^[0-9]/!d' | \
+ sed -e "s/^R\(.*\)/\1:R\1/" | \
+ sed -e "s/\([^:]*\)/\1:\1/" | sort | cut -d':' -f2
}
update_checksum_file()