-d is cleaner

alfons-task
Nathan DECHER 4 years ago
parent ffce216a34
commit 04ca1f5a10
  1. 5
      bin/moonbuild.moon
  2. 6
      moonbuild.lua

@ -188,7 +188,10 @@ if args.deps
io.write "(#{concat target.ins, ', '} -> #{concat target.outs, ', '})" io.write "(#{concat target.ins, ', '} -> #{concat target.outs, ', '})"
io.write "\n" io.write "\n"
for name, dep in sortedpairs deps for name, dep in sortedpairs deps
io.write "\t\t#{name} (#{dep.name})\n" io.write "\t\t#{name}"
if name!=dep.name
io.write " (#{dep.name})"
io.write "\n"
os.exit 0 os.exit 0
if #args.targets==0 if #args.targets==0

@ -974,7 +974,11 @@ if args.deps then
end end
io.write("\n") io.write("\n")
for name, dep in sortedpairs(deps) do for name, dep in sortedpairs(deps) do
io.write("\t\t" .. tostring(name) .. " (" .. tostring(dep.name) .. ")\n") io.write("\t\t" .. tostring(name))
if name ~= dep.name then
io.write(" (" .. tostring(dep.name) .. ")")
end
io.write("\n")
end end
end end
os.exit(0) os.exit(0)

Loading…
Cancel
Save