From 0f3506c7b712ed2e30f65fd634f49e1af97644b9 Mon Sep 17 00:00:00 2001 From: Codinget Date: Sun, 15 Nov 2020 16:28:30 +0100 Subject: [PATCH] Alfons.moon handles the source ver of moonbuild, also funny number of commits haha nice --- Alfons.moon | 14 +++++++------- README.md | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Alfons.moon b/Alfons.moon index 3bd9faf..782c408 100644 --- a/Alfons.moon +++ b/Alfons.moon @@ -1,13 +1,13 @@ -tasks: - bootstrap: => sh "moon bin/moonbuild.moon -jy" - bootstrapinstall: => sh "moon bin/moonbuild.moon install -jy" +require 'moonscript' +moonbuild = require 'moonbuild' +tasks: release: => error "no version provided" unless @v tasks.build! sh "rockbuild -m -t #{@v} upload" - build: => (require 'moonbuild') j: true - install: => (require 'moonbuild') 'install', j: true - clean: => (require 'moonbuild') 'clean' - mrproper: => (require 'moonbuild') 'mrproper' + build: => moonbuild j: true + install: => moonbuild 'install', j: true + clean: => moonbuild 'clean' + mrproper: => moonbuild 'mrproper' diff --git a/README.md b/README.md index 731f731..8d0fc79 100644 --- a/README.md +++ b/README.md @@ -27,5 +27,10 @@ You can build moonbuild with itself: `moon bin/moonbuild.moon -qjy`. 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`. +You can combine these steps with `moon bin/moonbuild.moon -qjy install` which will build and install moonbuild. + +### With `Alfons` +Alfons can use the devel version of moonbuild directly from its sources, so `alfons build` and `alfons install` will work directly. + ## Docs TODO