Restructure to allow submodules #49
19
makeENV.lua
19
makeENV.lua
@ -1,19 +0,0 @@
|
|||||||
lcommands = [[
|
|
||||||
mkdir luajit && python -m hererocks -j 2.1.0-beta3 -r latest --patch --compat all ./luajit && set "PATH=G:\VSCWorkspace\multi\luajit\bin;%PATH%" && lua -v && luarocks install multi && luarocks install lanes
|
|
||||||
mkdir lua5.1 && python -m hererocks -l 5.1 -r latest --patch --compat all ./lua5.1 && set "PATH=G:\VSCWorkspace\multi\luajit\bin;%PATH%" && lua -v && luarocks install multi && luarocks install lanes
|
|
||||||
mkdir lua5.2 && python -m hererocks -l 5.2 -r latest --patch --compat all ./lua5.2 && set "PATH=G:\VSCWorkspace\multi\luajit\bin;%PATH%" && lua -v && luarocks install multi && luarocks install lanes
|
|
||||||
mkdir lua5.3 && python -m hererocks -l 5.3 -r latest --patch --compat all ./lua5.3 && set "PATH=G:\VSCWorkspace\multi\luajit\bin;%PATH%" && lua -v && luarocks install multi && luarocks install lanes
|
|
||||||
mkdir lua5.4 && python -m hererocks -l 5.4 -r latest --patch --compat all ./lua5.4 && set "PATH=G:\VSCWorkspace\multi\luajit\bin;%PATH%" && lua -v && luarocks install multi && luarocks install lanes
|
|
||||||
]]
|
|
||||||
function string.split (inputstr, sep)
|
|
||||||
local sep = sep or "\n"
|
|
||||||
local t={}
|
|
||||||
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
|
|
||||||
table.insert(t, str)
|
|
||||||
end
|
|
||||||
return t
|
|
||||||
end
|
|
||||||
local run = commands:split()
|
|
||||||
for i=1,#run do
|
|
||||||
os.execute(run[i])
|
|
||||||
end
|
|
||||||
31
makeENV.sh
31
makeENV.sh
@ -1,31 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
mkdir luajit
|
|
||||||
hererocks -j 2.1.0-beta3 -r latest --compat all ./luajit
|
|
||||||
. luajit/bin/activate
|
|
||||||
echo | lua -v
|
|
||||||
luarocks install multi
|
|
||||||
deactivate-lua
|
|
||||||
mkdir lua5.1
|
|
||||||
hererocks -l 5.1 -r latest --patch --compat all ./lua5.1
|
|
||||||
. lua5.1/bin/activate
|
|
||||||
echo | lua -v
|
|
||||||
luarocks install multi
|
|
||||||
deactivate-lua
|
|
||||||
mkdir lua5.2
|
|
||||||
hererocks -l 5.2 -r latest --patch --compat all ./lua5.2
|
|
||||||
. lua5.2/bin/activate
|
|
||||||
echo | lua -v
|
|
||||||
luarocks install multi
|
|
||||||
deactivate-lua
|
|
||||||
mkdir lua5.3
|
|
||||||
hererocks -l 5.3 -r latest --patch --compat all ./lua5.3
|
|
||||||
. lua5.3/bin/activate
|
|
||||||
echo | lua -v
|
|
||||||
luarocks install multi
|
|
||||||
deactivate-lua
|
|
||||||
mkdir lua5.4
|
|
||||||
hererocks -l 5.4 -r latest --patch --compat all ./lua5.4
|
|
||||||
. lua5.4/bin/activate
|
|
||||||
echo | lua -v
|
|
||||||
luarocks install multi
|
|
||||||
deactivate-lua
|
|
||||||
@ -5,6 +5,7 @@ GLOBAL, THREAD = require("multi.integration.lanesManager"):init()
|
|||||||
multi:getOptimizationConnection()(function(msg)
|
multi:getOptimizationConnection()(function(msg)
|
||||||
print(msg)
|
print(msg)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- local conn1, conn2, conn3 = multi:newConnection(), multi:newConnection(), multi:newConnection()
|
-- local conn1, conn2, conn3 = multi:newConnection(), multi:newConnection(), multi:newConnection()
|
||||||
-- thread:newThread(function()
|
-- thread:newThread(function()
|
||||||
-- print("Awaiting status")
|
-- print("Awaiting status")
|
||||||
Loading…
x
Reference in New Issue
Block a user