Skip to content

Commit

Permalink
Generate Lua patch series with git format-patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
obilaniu committed Sep 30, 2022
1 parent 134d5c4 commit 12b86e3
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 26 deletions.
15 changes: 15 additions & 0 deletions scripts/import-lua-patches.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#/bin/sh
LUA_FORK="${1:-${LUA_FORK:?"Lua fork not specified!"}}"
LUA_STARTPATCH="${LUA_STARTPATCH:-":/Enable renaming main functions"}"
LUA_STARTPATCH="$(git -C "$LUA_FORK" rev-parse "$LUA_STARTPATCH")"
LUA_SUBPROJECT="$(pwd)/subprojects/packagefiles/lua"
rm -fv "$LUA_SUBPROJECT/patches"/????-*.patch
touch "$LUA_SUBPROJECT/patches/9999-Empty.patch"
git -C "$LUA_FORK" format-patch \
-o "$LUA_SUBPROJECT/patches" \
--filename-max-length=64 \
--zero-commit -N \
--no-signature \
--no-stat \
--binary \
"${LUA_STARTPATCH}^.."
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Author: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Wed Feb 23 13:54:01 2022 -0500
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Wed, 23 Feb 2022 13:54:01 -0500
Subject: [PATCH] Enable renaming main functions

Enable renaming main function of Lua interpreter and compiler

diff --git a/lua.c b/lua.c
index 7f7dc2b2..28abd014 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
Author: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Wed Jun 29 15:52:10 2022 -0400
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Wed, 29 Jun 2022 15:52:10 -0400
Subject: [PATCH] Advanced history and line completion support.

Advanced history and line completion support.

Adds Bash-like environment and history support, controllable through
environment variables
- LUA_HISTORY
- LUA_HISTSIZE
- LUA_HISTFILESIZE
- LUA_HISTCONTROL

Line-editing libraries supported:

- readline
- linenoise

The supported feature-set varies between the two.

Co-authored-by: Mike Pall <mike>
Co-authored-by: Sean Bolton <sean@smbolton.com>
Adds Bash-like environment and history support, controllable through
environment variables
- LUA_HISTORY
- LUA_HISTSIZE
- LUA_HISTFILESIZE
- LUA_HISTCONTROL

Line-editing libraries supported:

- readline
- linenoise

The supported feature-set varies between the two.

Co-authored-by: Mike Pall <mike>
Co-authored-by: Sean Bolton <sean@smbolton.com>

diff --git a/lua.c b/lua.c
index 28abd014..7f93255a 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Author: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Sun Oct 31 06:28:24 2021 -0400
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Sun, 31 Oct 2021 06:28:24 -0400
Subject: [PATCH] Add static searcher mechanism

Add static module search mechanism

diff --git a/loadlib.c b/loadlib.c
index d792dffa..b24cb47f 100644
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Olexa Bilaniuk <obilaniu@gmail.com>
Date: Sun, 31 Oct 2021 06:28:24 -0400
Subject: [PATCH] Implement static searcher mechanism


diff --git a/loadlib.c b/loadlib.c
index b24cb47f..b5edf45f 100644
--- a/loadlib.c
Expand Down

0 comments on commit 12b86e3

Please sign in to comment.