Concurrent rule execution.

This commit is contained in:
Daniel Jones 2013-03-03 17:50:00 -08:00
parent 115d8425be
commit ee70f46012
6 changed files with 518 additions and 31 deletions

View file

@ -114,7 +114,11 @@ func parsePipeInclude(p *parser, t token) parserStateFun {
args[i-1] = p.tokenbuf[i].val
}
output := executeRecipe("sh", args, "", false, false, true)
output, success := subprocess("sh", args, "", false, false, true)
if !success {
p.basicErrorAtToken("subprocess include failed", t)
}
parseInto(output, fmt.Sprintf("%s:sh", p.name), p.rules)
p.clear()