Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to Lua 5.4.7 and fixed a typo #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Library list and documentation

Here a link to the documentation of the included software:

- [Lua 5.4.2](https://www.lua.org/manual/5.4), the standalone interpreter is in the generated `lua.exe`
- [Lua 5.4.7](https://www.lua.org/manual/5.4), the standalone interpreter is in the generated `lua.exe`
- [Lua File System](https://keplerproject.github.io/luafilesystem/manual.html#reference), it is enabled with `local lfs = require "lfs"`
- [Lua Socket](http://w3.impa.br/~diego/software/luasocket/reference.html), it is enabled with `local socket = require "socket"`
- [Lua Child](https://github.com/pocomane/luachild), it is enabled with `local child = require "luachild"`
Expand Down
12 changes: 6 additions & 6 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ us_remove() {
rm -fR "$PACKAGE_WORKING_DIR"
}

us_donwload_github_release() {
us_download_github_release() {
PACKAGE_REPO_API="https://api.github.com/repos/$PACKAGE_REPO"
PACKAGE_REPO_URL="https://github.com/$PACKAGE_REPO"
PACK_LIST=$($CURL -L -s $PACKAGE_REPO_API/releases/latest | sed -ne 's|^[ "]*browser_download_url[ "]*:[ "]*\([^"]*\)[ ",\t]*$|\1|p')
Expand Down Expand Up @@ -120,21 +120,21 @@ us_install(){
us_donwload_git_url
;;
"github.bare")
us_donwload_github_release
us_download_github_release
;;
"github.uudecode.xz")
us_donwload_github_release
us_download_github_release
uudecode -o "$TMPFILE.xz" "$TMPFILE" ||die "can not unpack $PACKAGE_INFO"
rm "$TMPFILE" ||die "can not unpack $PACKAGE_INFO"
xz --decompress "$TMPFILE.xz" ||die "can not unpack $PACKAGE_INFO"
cp "$TMPFILE" "$PACKAGE_NAME" ||die "can not unpack $PACKAGE_INFO"
;;
"github.tar.gx")
us_donwload_github_release
us_download_github_release
$TAR -xzf "$TMPFILE" ||die "can not unpack $PACKAGE_INFO"
;;
"github.tar")
us_donwload_github_release
us_download_github_release
$TAR -xf "$TMPFILE" ||die "can not unpack $PACKAGE_INFO"
;;
*)
Expand Down Expand Up @@ -238,7 +238,7 @@ us_do_for_updater() {
}
us_do_for_other() {

us_package_do "$1" www.lua.org/ftp lua-5.4.2.tar.gz . url.tar.gz.sub 'lua'
us_package_do "$1" www.lua.org/ftp lua-5.4.7.tar.gz . url.tar.gz.sub 'lua'
us_package_do "$1" github.com/keplerproject luafilesystem . git.url
us_package_do "$1" github.com/diegonehab luasocket . git.url
us_package_do "$1" github.com/pocomane luachild . git.url
Expand Down