updated the binary to not be packaged with the library

main
Codinget 4 years ago
parent ce942f9da8
commit c6004f1582
  1. 4
      Build.moon
  2. 2
      README.md
  3. 10
      bin/moonbuild.moon
  4. 2692
      out/moonbuild

@ -48,12 +48,10 @@ with public target 'lib'
with target BIN, pattern: 'out/%'
\depends 'bin/%.lua'
\depends LIB_LUA
\produces 'out/%'
\mkdirs!
\fn =>
_.cmd AMALG, '-o', @outfile, '-s', @infile, MODULES
_.writefile @outfile, "#!/usr/bin/env #{LUA}\n#{_.readfile @outfile}"
_.writefile @outfile, "#!/usr/bin/env #{LUA}\n#{_.readfile @infile}"
_.cmd 'chmod', '+x', @outfile
with target 'out/moonbuild.lua'

@ -24,7 +24,7 @@ You will need `argparse` and `moonscript` installed from luarocks, and `luaposix
### Bootstrapping
You can build moonbuild with itself: `moon bin/moonbuild.moon -qjy`.
This will leave the binary ready to be used as `out/moonbuild`.
This will leave the binary ready to be used as `out/moonbuild` (it will still depend on the library to be used).
The binary and library can then be installed with `bin/moonbuild install`.
## Docs

@ -1,15 +1,13 @@
-- load everything we need
import loadfile from require 'moonscript.base'
Context = require 'moonbuild.context'
Variable = require 'moonbuild.core.Variable'
DepGraph = require 'moonbuild.core.DAG'
Executor = require 'moonbuild.core.executor'
import parseargs from require 'moonbuild._cmd.common'
import Context, DepGraph, Executor from require 'moonbuild'
Variable = (require 'moonbuild')['core.Variable']
import parseargs from (require 'moonbuild')['_cmd.common']
argparse = require 'argparse'
import sort, concat from table
import exit from os
-- parse the arguments
argparse = require 'argparse'
parser = with argparse "moonbuild", "A build system in moonscript"
\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'

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save