Artifact f6a7de0ae1e801f4a695def0a0f2c17461b2e486:
- File paklib/targets/build.lua — part of check-in [253624726c] at 2013-05-23 16:17:02 on branch network — Update all targets to have a return value of non-nil (user: tcg.thegamer@gmail.com size: 424)
local target = {} target.name = "build" target.deps = {"configure"} target.execute = function( cfg ) print( "* Building everything..." ) local err if io.exists('.tup/db') == false then err = os.execute('tup init') if err ~= true then return "could not init tup database" end end err = os.execute('tup upd') if err ~= true then return "could not build targets!" else return true end end return target