mirror of
https://github.com/natnat-mc/moonbuild
synced 2026-05-28 04:59:41 +02:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e13705f232 | |||
| c6004f1582 | |||
| ce942f9da8 |
+1
-3
@@ -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
|
||||
|
||||
+4
-6
@@ -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'
|
||||
|
||||
+7
-2685
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,27 @@
|
||||
build = {
|
||||
install = {
|
||||
bin = {
|
||||
moonbuild = "out/moonbuild"
|
||||
}
|
||||
},
|
||||
modules = {
|
||||
moonbuild = "out/moonbuild.lua"
|
||||
},
|
||||
type = "builtin"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
"argparse >= 0.7.1-1",
|
||||
"moonscript >= 0.5.0-1"
|
||||
}
|
||||
description = {
|
||||
detailed = "moonbuild is a small build system that simplifies your build definitions by allowing you to use declarative as well as imperative rules. It represents the build as a DAG with explicit ordering, and doesn't give you any default confusing rules (unlike make). If you can, installing luaposix and/or luafilesystem will speed up builds and increase stability.\n",
|
||||
summary = "Small build system in between make and a build.sh"
|
||||
}
|
||||
package = "moonbuild"
|
||||
rockspec_format = "3.0"
|
||||
source = {
|
||||
tag = "v2.2.1",
|
||||
url = "git://github.com/natnat-mc/moonbuild"
|
||||
}
|
||||
version = "2.2.1-1"
|
||||
@@ -0,0 +1,27 @@
|
||||
build = {
|
||||
install = {
|
||||
bin = {
|
||||
moonbuild = "out/moonbuild"
|
||||
}
|
||||
},
|
||||
modules = {
|
||||
moonbuild = "out/moonbuild.lua"
|
||||
},
|
||||
type = "builtin"
|
||||
}
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
"argparse >= 0.7.1-1",
|
||||
"moonscript >= 0.5.0-1"
|
||||
}
|
||||
description = {
|
||||
detailed = "moonbuild is a small build system that simplifies your build definitions by allowing you to use declarative as well as imperative rules. It represents the build as a DAG with explicit ordering, and doesn't give you any default confusing rules (unlike make). If you can, installing luaposix and/or luafilesystem will speed up builds and increase stability.\n",
|
||||
summary = "Small build system in between make and a build.sh"
|
||||
}
|
||||
package = "moonbuild"
|
||||
rockspec_format = "3.0"
|
||||
source = {
|
||||
tag = "v2.2.2",
|
||||
url = "git://github.com/natnat-mc/moonbuild"
|
||||
}
|
||||
version = "2.2.2-1"
|
||||
Reference in New Issue
Block a user