From: Mike Pall Date: Sat, 9 Sep 2023 10:47:27 +0000 (+0200) Subject: Allow override of paths for genversion.lua. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4d05806ae046838826f9bab3b3b804eae26cd017;p=thirdparty%2FLuaJIT.git Allow override of paths for genversion.lua. Thanks to arch1t3cht. #1067 --- diff --git a/src/host/genversion.lua b/src/host/genversion.lua index 42b5e6fe..5ead4c2b 100644 --- a/src/host/genversion.lua +++ b/src/host/genversion.lua @@ -5,9 +5,9 @@ -- Released under the MIT license. See Copyright Notice in luajit.h ---------------------------------------------------------------------------- -local FILE_ROLLING_H = "luajit_rolling.h" -local FILE_RELVER_TXT = "luajit_relver.txt" -local FILE_LUAJIT_H = "luajit.h" +local FILE_ROLLING_H = arg[1] or "luajit_rolling.h" +local FILE_RELVER_TXT = arg[2] or "luajit_relver.txt" +local FILE_LUAJIT_H = arg[3] or "luajit.h" local function file_read(file) local fp = assert(io.open(file, "rb"), "run from the wrong directory")