From 81abba07c366543d82ba4dcbdc3013e698205bc7 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 30 May 2023 19:19:24 -0500 Subject: [PATCH] preparing for release --- CHANGELOG | 2 +- compiler/src/onyx.c | 2 +- scripts/dist.onyx | 42 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 scripts/dist.onyx diff --git a/CHANGELOG b/CHANGELOG index 582e2715..e7f0a3d6 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,6 @@ Release v0.1.2 ----------- -Unreleased +30th May 2023 Additions: * Tagged unions (`union` type) diff --git a/compiler/src/onyx.c b/compiler/src/onyx.c index 99e1b701..b1c8d15b 100644 --- a/compiler/src/onyx.c +++ b/compiler/src/onyx.c @@ -19,7 +19,7 @@ extern struct bh_allocator global_heap_allocator; #include "wasm_emit.h" #include "doc.h" -#define VERSION "v0.1.1a" +#define VERSION "v0.1.2" Context context; diff --git a/scripts/dist.onyx b/scripts/dist.onyx new file mode 100644 index 00000000..302f1533 --- /dev/null +++ b/scripts/dist.onyx @@ -0,0 +1,42 @@ +use core {*} + +FOLDERS := str.[ + "compiler", + "core", + "interpreter", + "runtime", + "tests", + "misc", + "shared/lib/linux_x86_64", + "shared/include", + "examples/" +]; + +FILES := str.[ + "README.md", + "LICENSE", + "CHANGELOG", + "build.sh", + "settings.sh", + "scripts/onyx-pkg.onyx", + "scripts/default.json", + "scripts/run_tests.onyx", + "bin/onyx-loader.js", + "bin/onyx-thread.js" +] + +run :: (command: [] str) -> bool { + cmd := command[0]; + parts := command[1 .. command.length]; + proc := os.process_spawn(cmd, parts); + return os.process_wait(&proc) == .Success; +} + +main :: () { + args := array.make(.["tar", "cvzf", "onyx-latest-linux-source.tar.gz"]); + + for FOLDERS do args << it; + for FILES do args << it; + + run(args); +} -- 2.25.1