1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-28 09:39:40 +02:00

6 Commits

Author SHA1 Message Date
Codinget e13705f232 Producing rockspec 2.2.2-1 2020-11-13 20:12:38 +01:00
Codinget c6004f1582 updated the binary to not be packaged with the library 2020-11-13 20:12:24 +01:00
Codinget ce942f9da8 Producing rockspec 2.2.1-1 2020-11-13 20:03:58 +01:00
Codinget cc776ef24e fix gitignore 2020-11-13 20:03:41 +01:00
Codinget 603d09fc84 Producing rockspec 2.2.0-2 2020-11-13 19:54:54 +01:00
Codinget 2b3337fc69 Producing rockspec 2.2.0-1 2020-11-13 19:54:09 +01:00
11 changed files with 2800 additions and 2698 deletions
+3 -1
View File
@@ -1 +1,3 @@
*.lua bin/*.lua
moonbuild/*.lua
moonbuild/*/*.lua
+1 -3
View File
@@ -48,12 +48,10 @@ with public target 'lib'
with target BIN, pattern: 'out/%' with target BIN, pattern: 'out/%'
\depends 'bin/%.lua' \depends 'bin/%.lua'
\depends LIB_LUA
\produces 'out/%' \produces 'out/%'
\mkdirs! \mkdirs!
\fn => \fn =>
_.cmd AMALG, '-o', @outfile, '-s', @infile, MODULES _.writefile @outfile, "#!/usr/bin/env #{LUA}\n#{_.readfile @infile}"
_.writefile @outfile, "#!/usr/bin/env #{LUA}\n#{_.readfile @outfile}"
_.cmd 'chmod', '+x', @outfile _.cmd 'chmod', '+x', @outfile
with target 'out/moonbuild.lua' with target 'out/moonbuild.lua'
+1 -1
View File
@@ -24,7 +24,7 @@ You will need `argparse` and `moonscript` installed from luarocks, and `luaposix
### Bootstrapping ### Bootstrapping
You can build moonbuild with itself: `moon bin/moonbuild.moon -qjy`. 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`. The binary and library can then be installed with `bin/moonbuild install`.
## Docs ## Docs
+4 -6
View File
@@ -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'
+7 -2685
View File
File diff suppressed because it is too large Load Diff
+2674
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -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.0",
url = "git://github.com/natnat-mc/moonbuild"
}
version = "2.2.0-1"
+27
View File
@@ -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.0",
url = "git://github.com/natnat-mc/moonbuild"
}
version = "2.2.0-2"
+27
View File
@@ -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"
+27
View File
@@ -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"