From 30895f03c460b725d53a3c5b58bc68b2f834c409 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 13 Jul 2020 20:53:14 +0200 Subject: [PATCH] Rename definition to truffleruby+graalvm * '+' needs to be considered part of the name for --definitions and -l to see truffleruby and truffleruby+graalvm as separate. --- bin/ruby-build | 8 ++++---- ...update-graalvm => update-truffleruby-graalvm} | 4 ++-- share/ruby-build/graalvm-20.1.0 | 13 ------------- share/ruby-build/truffleruby+graalvm-20.1.0 | 13 +++++++++++++ test/definitions.bats | 16 ++++++++-------- 5 files changed, 27 insertions(+), 27 deletions(-) rename script/{update-graalvm => update-truffleruby-graalvm} (83%) delete mode 100644 share/ruby-build/graalvm-20.1.0 create mode 100644 share/ruby-build/truffleruby+graalvm-20.1.0 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" <