861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
598 B
Diff
17 lines
598 B
Diff
--- a/src/compat-5.3.h
|
|
+++ b/src/compat-5.3.h
|
|
@@ -399,11 +399,11 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname,
|
|
|
|
|
|
/* other Lua versions */
|
|
-#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 503
|
|
+#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 504
|
|
|
|
-# error "unsupported Lua version (i.e. not Lua 5.1, 5.2, or 5.3)"
|
|
+# error "unsupported Lua version (i.e. not Lua 5.1, 5.2, 5.3 or 5.4)"
|
|
|
|
-#endif /* other Lua versions except 5.1, 5.2, and 5.3 */
|
|
+#endif /* other Lua versions except 5.1, 5.2, 5.3 and 5.4 */
|
|
|
|
|
|
|