From 1e618de21cc331bfa5b7b53107efa117b6a31386 Mon Sep 17 00:00:00 2001 From: Wilson Kazuo Mizutani Date: Sun, 20 Jun 2021 18:08:07 -0300 Subject: [PATCH 1/3] Add linux-readline target support for 5.4.x --- luaver | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/luaver b/luaver index d0cd9c3..5b9fb24 100755 --- a/luaver +++ b/luaver @@ -428,6 +428,10 @@ __luaver_install_lua() __luaver_print "Unable to detect platform. Using default 'posix'" platform=posix else + if [[ "${version}" =~ 5[.]4[.][0-9]+ ]] + then + platform="${platform}-readline" + fi __luaver_print "Platform detected: ${platform}" fi From ee78a5a2ebd3b3df7885f906a7a02f02b45854f9 Mon Sep 17 00:00:00 2001 From: Wilson Kazuo Mizutani Date: Sun, 20 Jun 2021 18:13:31 -0300 Subject: [PATCH 2/3] Bump LUX's fork --- CHANGELOG.md | 6 ++++++ luaver | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2de43f..d22de7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.1.0-lux] - 2021-06-20 + +### Added + +- Lua 5.4 linux-readline support + ## [1.1.0] - 2017-08-16 ### Added diff --git a/luaver b/luaver index 5b9fb24..3359a89 100755 --- a/luaver +++ b/luaver @@ -7,7 +7,7 @@ # # MIT license http://www.opensource.org/licenses/mit-license.php -__luaver_VERSION="1.1.0" +__luaver_VERSION="1.1.0-lux" # Directories and files to be used From 4af37ba46d72397b993202ad99420e6c5fd7e6f6 Mon Sep 17 00:00:00 2001 From: Wilson Kazuo Mizutani Date: Sun, 20 Jun 2021 18:08:07 -0300 Subject: [PATCH 3/3] Make linux-readline support POSIX sh compatible See the following PR's discussion for more details: https://github.com/DhavalKapil/luaver/pull/64 --- luaver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luaver b/luaver index 3359a89..2c8e3dd 100755 --- a/luaver +++ b/luaver @@ -428,7 +428,7 @@ __luaver_install_lua() __luaver_print "Unable to detect platform. Using default 'posix'" platform=posix else - if [[ "${version}" =~ 5[.]4[.][0-9]+ ]] + if [ -n "$('echo' "${version}" | 'awk' '/^5\.4\./')" ] then platform="${platform}-readline" fi