preparing for release
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 31 May 2023 00:19:24 +0000 (19:19 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Wed, 31 May 2023 00:19:24 +0000 (19:19 -0500)
CHANGELOG
compiler/src/onyx.c
scripts/dist.onyx [new file with mode: 0644]

index 582e2715f667c79c67c776bcb7742bf74ba397c8..e7f0a3d62a692a478a9f06ff398f55d5475ca512 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,6 @@
 Release v0.1.2
 -----------
-Unreleased
+30th May 2023
 
 Additions:
 * Tagged unions (`union` type)
index 99e1b70143c504ae359afbbe4ae798ccd5977745..b1c8d15b755d214bf227404c5c4b1f9431ae37e5 100644 (file)
@@ -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 (file)
index 0000000..302f153
--- /dev/null
@@ -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);
+}