diff --git a/bin/ruby-build b/bin/ruby-build index 71f3336f..730b812f 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -751,7 +751,7 @@ build_package_truffleruby() { "${PREFIX_PATH}/lib/truffle/post_install_hook.sh" } -build_package_graalvm() { +build_package_truffleruby_graalvm() { clean_prefix_path build_package_copy_to "${PREFIX_PATH}/graalvm" @@ -1259,14 +1259,14 @@ list_maintained_versions() { extract_latest_versions() { # sort in this function looks redundunt but it is necessary # rbx-3.99 appears latest unless the sort - sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z.\1/; s/$/.z/; G; s/\n/ /' | \ + sed 'h; s/[-]/./g; s/.p\([[:digit:]]\)/.z.\1/; s/$/.z/; G; s/\n/ /' | \ LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | \ - sed 's/[+.]/ /; s/[0-9].*z //; s/^\([0-9].[0-9]\)/mri\1 \1/' | \ + sed 's/[.]/ /; s/[0-9].*z //; s/^\([0-9].[0-9]\)/mri\1 \1/' | \ awk '{ latest[$1] =$2 } END{ for(key in latest) { print latest[key] } }' } sort_versions() { - sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z.\1/; s/$/.z/; G; s/\n/ /' | \ + sed 'h; s/[-]/./g; s/.p\([[:digit:]]\)/.z.\1/; s/$/.z/; G; s/\n/ /' | \ LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}' } diff --git a/script/update-graalvm b/script/update-truffleruby-graalvm similarity index 83% rename from script/update-graalvm rename to script/update-truffleruby-graalvm index e0eaec4a..94a7e67a 100755 --- a/script/update-graalvm +++ b/script/update-truffleruby-graalvm @@ -10,7 +10,7 @@ fi version="$1" release_directory="$2" -file="share/ruby-build/graalvm-${version}" +file="share/ruby-build/truffleruby+graalvm-${version}" add_platform() { platform="$1" @@ -19,7 +19,7 @@ add_platform() { sha256=$(sha256sum "$release_directory/$basename" | cut -d ' ' -f 1) cat >> "$file" <