From 26e55ced73cb1154906f11b7d6e965cb816a09fe Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 28 Mar 2016 21:59:05 +1000 Subject: Add stuff to build external projects NetSurf and polipo. --- build.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build.lua') diff --git a/build.lua b/build.lua index 5661025..115c791 100755 --- a/build.lua +++ b/build.lua @@ -26,6 +26,11 @@ runCommand = function (name, dir, command) os.execute('cd ' .. dir .. '; ' .. command) end +cloneGit = function (name, dir, repo, branch) + runCommand(nil, dir, 'rm -rf ' .. name) + runCommand(nil, dir, 'git clone git://' .. repo .. '/' .. name) +end + compileFiles = function (name, dir, files, extras) local objects = '' print('\n' .. name) -- cgit v1.1