Skip to content

Commit

Permalink
New script for packing project.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagolove committed Jan 5, 2020
1 parent 43ceb9b commit 01ad9d5
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 10 deletions.
32 changes: 22 additions & 10 deletions logthread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ local conn = socket.tcp()
local ok, msg, tmsg
local finish = false

ok, errmsg = conn:connect(host, port)
conn:settimeout(0.1)
local ok, errmsg = conn:connect(host, port)

--local logfile = love.filesystem.newFile("tlog.txt", "w")
--love.filesystem.write("example2.txt", "stroka")
--print("stroka")
--local str = "hihi"
--love.filesystem.write("tlog_ex.txt", str, str:len())
--if logfile then
--logfile:write("log created.\n")
--end

if not ok then
print("Connection error", errmsg)
Expand All @@ -22,16 +32,18 @@ else
print("connected")
end

local logfile = love.filesystem.newFile("tlog.txt", "w")

local str = "hihi"
love.filesystem.write("tlog_ex.txt", str, str:len())

if logfile then
logfile:write("log created.\n")
end

repeat
if not ok then
print("recon")
ok, errmsg = conn:connect(host, port)
if not ok then
print("Connection error", errmsg)
return
else
print("connected")
end
end

tmsg = chan:pop()
if tmsg then
if type(tmsg) == "string" and tmsg == "closethread" then
Expand Down
31 changes: 31 additions & 0 deletions pack_archive.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

apack nback2.zip gfx/* \
sfx/* \
libs/* \
README.md \
alignedlabels.lua \
background.lua \
bhupur.lua \
common.lua \
conf.lua \
dbg.lua \
devlog.md \
generator.lua \
geo.lua \
help.lua \
ihelp.lua \
inspect.lua \
kons.lua \
logclient.lua \
logthread.lua \
main.lua \
menu.lua \
nback.lua \
pallete.lua \
pviewer.lua \
ruler.lua \
serpent.lua \
setupmenu.lua \
signal.lua \
splash.lua

0 comments on commit 01ad9d5

Please sign in to comment.