|
|
@ -1,15 +1,13 @@ |
|
|
|
-- load everything we need |
|
|
|
-- load everything we need |
|
|
|
import loadfile from require 'moonscript.base' |
|
|
|
import loadfile from require 'moonscript.base' |
|
|
|
Context = require 'moonbuild.context' |
|
|
|
import Context, DepGraph, Executor from require 'moonbuild' |
|
|
|
Variable = require 'moonbuild.core.Variable' |
|
|
|
Variable = (require 'moonbuild')['core.Variable'] |
|
|
|
DepGraph = require 'moonbuild.core.DAG' |
|
|
|
import parseargs from (require 'moonbuild')['_cmd.common'] |
|
|
|
Executor = require 'moonbuild.core.executor' |
|
|
|
argparse = require 'argparse' |
|
|
|
import parseargs from require 'moonbuild._cmd.common' |
|
|
|
|
|
|
|
import sort, concat from table |
|
|
|
import sort, concat from table |
|
|
|
import exit from os |
|
|
|
import exit from os |
|
|
|
|
|
|
|
|
|
|
|
-- parse the arguments |
|
|
|
-- parse the arguments |
|
|
|
argparse = require 'argparse' |
|
|
|
|
|
|
|
parser = with argparse "moonbuild", "A build system in moonscript" |
|
|
|
parser = with argparse "moonbuild", "A build system in moonscript" |
|
|
|
\option '-b --buildfile', "Build file to use", 'Build.moon' |
|
|
|
\option '-b --buildfile', "Build file to use", 'Build.moon' |
|
|
|
\option '-j --parallel', "Sets the number of parallel tasks, 'y' to run as many as we have cores", '1' |
|
|
|
\option '-j --parallel', "Sets the number of parallel tasks, 'y' to run as many as we have cores", '1' |
|
|
|