Skip to content

Commit

Permalink
Change etc/make.lua to cleanup temporary files
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Nov 26, 2011
1 parent 713165a commit 4aec285
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions etc/make.lua
Expand Up @@ -3,7 +3,7 @@
Supporting code for the UNIX makefile of the Lua/APR binding.
Author: Peter Odding <peter@peterodding.com>
Last Change: November 6, 2011
Last Change: November 27, 2011
Homepage: http://peterodding.com/code/lua/apr/
License: MIT
Expand Down Expand Up @@ -74,7 +74,11 @@ local function readcmd(command)
local status = os.execute(command
.. ' 1>"' .. stdout .. '"'
.. ' 2>"' .. stderr .. '"')
return status, readfile(stdout), readfile(stderr)
local output = readfile(stdout)
local errors = readfile(stderr)
os.remove(stdout)
os.remove(stderr)
return status, output, errors
end

-- readstdout() -- Get the standard output of a shell command. {{{2
Expand Down

0 comments on commit 4aec285

Please sign in to comment.