diff options
| author | Pierre Chapuis <git@catwell.info> | 2025-12-24 10:41:26 +0100 |
|---|---|---|
| committer | Pierre Chapuis <git@catwell.info> | 2025-12-26 11:06:49 +0100 |
| commit | 8ae28df89b164dc1b27406d9421dd06fac2efa9a (patch) | |
| tree | 257706b6bef09fcd3e7759985a9e46281e270005 | |
| parent | 291fc8a34fc186b011c9d6b09a80bf179cae6f62 (diff) | |
| download | luarocks-8ae28df89b164dc1b27406d9421dd06fac2efa9a.tar.gz luarocks-8ae28df89b164dc1b27406d9421dd06fac2efa9a.tar.bz2 luarocks-8ae28df89b164dc1b27406d9421dd06fac2efa9a.zip | |
update handling of version-specific LUA_PATH / LUA_CPATH
Support Lua 5.4 and 5.5,
see https://github.com/luarocks/luarocks/pull/1832
| -rw-r--r-- | install.bat | 6 | ||||
| -rw-r--r-- | spec/util/test_env.lua | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/install.bat b/install.bat index 6dd71125..5210a862 100644 --- a/install.bat +++ b/install.bat | |||
| @@ -1058,6 +1058,12 @@ IF NOT "%LUA_PATH_5_2%"=="" ( | |||
| 1058 | IF NOT "%LUA_PATH_5_3%"=="" ( | 1058 | IF NOT "%LUA_PATH_5_3%"=="" ( |
| 1059 | SET "LUA_PATH_5_3=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_3%" | 1059 | SET "LUA_PATH_5_3=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_3%" |
| 1060 | ) | 1060 | ) |
| 1061 | IF NOT "%LUA_PATH_5_4%"=="" ( | ||
| 1062 | SET "LUA_PATH_5_4=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_4%" | ||
| 1063 | ) | ||
| 1064 | IF NOT "%LUA_PATH_5_5%"=="" ( | ||
| 1065 | SET "LUA_PATH_5_5=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_5%" | ||
| 1066 | ) | ||
| 1061 | SET "PATH=$BINDIR;%PATH%" | 1067 | SET "PATH=$BINDIR;%PATH%" |
| 1062 | "$LUA" "$BINDIR\]]..c..[[.lua" %* | 1068 | "$LUA" "$BINDIR\]]..c..[[.lua" %* |
| 1063 | SET EXITCODE=%ERRORLEVEL% | 1069 | SET EXITCODE=%ERRORLEVEL% |
diff --git a/spec/util/test_env.lua b/spec/util/test_env.lua index 390ba01c..4b359b7f 100644 --- a/spec/util/test_env.lua +++ b/spec/util/test_env.lua | |||
| @@ -250,6 +250,10 @@ function test_env.execute_helper(command, print_command, env_variables) | |||
| 250 | "LUA_CPATH_5_2", | 250 | "LUA_CPATH_5_2", |
| 251 | "LUA_PATH_5_3", | 251 | "LUA_PATH_5_3", |
| 252 | "LUA_CPATH_5_3", | 252 | "LUA_CPATH_5_3", |
| 253 | "LUA_PATH_5_4", | ||
| 254 | "LUA_CPATH_5_4", | ||
| 255 | "LUA_PATH_5_5", | ||
| 256 | "LUA_CPATH_5_5", | ||
| 253 | "LUAROCKS_SYSCONFDIR", | 257 | "LUAROCKS_SYSCONFDIR", |
| 254 | } | 258 | } |
| 255 | 259 | ||
