diff options
Diffstat (limited to 'build.lua')
-rwxr-xr-x | build.lua | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -26,6 +26,11 @@ runCommand = function (name, dir, command) | |||
26 | os.execute('cd ' .. dir .. '; ' .. command) | 26 | os.execute('cd ' .. dir .. '; ' .. command) |
27 | end | 27 | end |
28 | 28 | ||
29 | cloneGit = function (name, dir, repo, branch) | ||
30 | runCommand(nil, dir, 'rm -rf ' .. name) | ||
31 | runCommand(nil, dir, 'git clone git://' .. repo .. '/' .. name) | ||
32 | end | ||
33 | |||
29 | compileFiles = function (name, dir, files, extras) | 34 | compileFiles = function (name, dir, files, extras) |
30 | local objects = '' | 35 | local objects = '' |
31 | print('\n' .. name) | 36 | print('\n' .. name) |