We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1765627 commit 7286db0Copy full SHA for 7286db0
xtra/PATCH.LUA
@@ -6,7 +6,7 @@ local function patch(pf)
6
local function parseFileName(l)local first=l:sub(5,5)
7
if first=='"'or first=="'"then return l:match(first.."([^"..first.."]+)"..first,5)
8
else local words={}for v in string.gmatch(l,"%S+")do table.insert(words,v)end return words[2]end end
9
- local function setPatchFile(f)
+ local function setPatchFile(f) --TODO: write patch to temporary file first
10
local o,b local function abort()print(e)if o then o:close()end if b then b:close()end return false end
11
o,e=io.open(f)if not o then return abort()end
12
b,e=io.open(f..".orig","w")if not b then return abort()end
0 commit comments