aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-17 14:19:52 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-17 14:19:52 +0000
commit67a124f6a9b34cda21058ced323144c4f04921cb (patch)
tree626f339349b86dce772acc188ac31fc9ab488fa5 /dist
parentmove extra/ to docs/gen/ and split up (diff)
downloadalive-67a124f6a9b34cda21058ced323144c4f04921cb.tar.gz
alive-67a124f6a9b34cda21058ced323144c4f04921cb.zip
mvoe rockspecs to dist/
Diffstat (limited to 'dist')
-rwxr-xr-xdist/release89
-rw-r--r--dist/rockspecs/alive-scm-1.rockspec81
2 files changed, 170 insertions, 0 deletions
diff --git a/dist/release b/dist/release
new file mode 100755
index 0000000..e7b6923
--- /dev/null
+++ b/dist/release
@@ -0,0 +1,89 @@
+#!/bin/sh
+VERSION="${1:-scm}"
+REVISION="${2:-1}"
+
+if [ "$VERSION" = scm ]; then
+ WHERE=
+else
+ git tag "$VERSION"
+
+ cat <<EOF >"alv/version.moon"
+----
+-- \`alive\` source code version information.
+--
+-- @module version
+
+--- exports
+-- @table exports
+-- @tfield string tag the last versions git tag
+-- @tfield string web the repo web URL
+-- @tfield string repo the git repo URL
+-- @tfield string release the web URL of this release
+{
+ tag: "${VERSION}"
+ web: "https://github.com/s-ol/alivecoding"
+ repo: "https://github.com/s-ol/alivecoding.git"
+ release: "https://github.com/s-ol/alivecoding/releases/tag/${VERSION}"
+}
+EOF
+
+ WHERE="
+ tag = \"$VERSION\","
+ VERSION="${VERSION#v}"
+ VERSION=$(echo "$VERSION" | tr -d -)
+fi
+
+list_modules() {
+ find "$1" -type f -name '*.moon' -exec sh -c '
+ MODULE=$(echo "$1" | sed -e "s/\.moon$//" -e "s/\//./g")
+ echo " [\"$MODULE\"] = \"$1\","
+ ' sh {} \;
+}
+
+cat <<STOP >"dist/rockspecs/alive-$VERSION-$REVISION.rockspec"
+package = "alive"
+version = "$VERSION-$REVISION"
+
+source = {
+ url = "git://github.com/s-ol/alivecoding.git",$WHERE
+}
+
+description = {
+ summary = "Experimental livecoding environment with persistent expressions",
+ detailed = [[
+This is an experimental livecoding language and environment, in which
+expressions persist and update until they are removed from the source code, and
+the interpreter keeps no state that you cannot manipulate directly in the
+source. This yields a direct-manipulation like experience with a purely
+text-based language and works without special editor support.]],
+ homepage = "https://alive.s-ol.nu",
+ license = "GPL-3",
+}
+
+dependencies = {
+ "lua >= 5.3",
+ "moonscript >= 0.5.0",
+ "lpeg ~> 0.10",
+ "luafilesystem",
+ "luasystem",
+ "luasocket",
+ "osc",
+}
+
+build = {
+ type = "builtin",
+ modules = {},
+ copy_directories = { "docs" },
+ install = {
+ lua = {
+$(list_modules alv)
+
+$(list_modules alv-lib)
+ },
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot"
+ },
+ },
+}
+STOP
diff --git a/dist/rockspecs/alive-scm-1.rockspec b/dist/rockspecs/alive-scm-1.rockspec
new file mode 100644
index 0000000..a416842
--- /dev/null
+++ b/dist/rockspecs/alive-scm-1.rockspec
@@ -0,0 +1,81 @@
+package = "alive"
+version = "scm-1"
+
+source = {
+ url = "git://github.com/s-ol/alivecoding.git",
+}
+
+description = {
+ summary = "Experimental livecoding environment with persistent expressions",
+ detailed = [[
+This is an experimental livecoding language and environment, in which
+expressions persist and update until they are removed from the source code, and
+the interpreter keeps no state that you cannot manipulate directly in the
+source. This yields a direct-manipulation like experience with a purely
+text-based language and works without special editor support.]],
+ homepage = "https://alive.s-ol.nu",
+ license = "GPL-3",
+}
+
+dependencies = {
+ "lua >= 5.3",
+ "moonscript >= 0.5.0",
+ "lpeg ~> 0.10",
+ "luafilesystem",
+ "luasystem",
+ "luasocket",
+ "osc",
+}
+
+build = {
+ type = "builtin",
+ modules = {},
+ copy_directories = { "docs" },
+ install = {
+ lua = {
+ ["alv.result"] = "alv/result.moon",
+ ["alv.stream.io"] = "alv/stream/io.moon",
+ ["alv.stream.base"] = "alv/stream/base.moon",
+ ["alv.stream.value"] = "alv/stream/value.moon",
+ ["alv.stream.event"] = "alv/stream/event.moon",
+ ["alv.stream.init"] = "alv/stream/init.moon",
+ ["alv.builtin"] = "alv/builtin.moon",
+ ["alv.cell"] = "alv/cell.moon",
+ ["alv.tag"] = "alv/tag.moon",
+ ["alv.copilot"] = "alv/copilot.moon",
+ ["alv.version"] = "alv/version.moon",
+ ["alv.error"] = "alv/error.moon",
+ ["alv.invoke"] = "alv/invoke.moon",
+ ["alv.cycle"] = "alv/cycle.moon",
+ ["alv.ast"] = "alv/ast.moon",
+ ["alv.base.builtin"] = "alv/base/builtin.moon",
+ ["alv.base.op"] = "alv/base/op.moon",
+ ["alv.base.fndef"] = "alv/base/fndef.moon",
+ ["alv.base.match"] = "alv/base/match.moon",
+ ["alv.base.input"] = "alv/base/input.moon",
+ ["alv.base.init"] = "alv/base/init.moon",
+ ["alv.registry"] = "alv/registry.moon",
+ ["alv.logger"] = "alv/logger.moon",
+ ["alv.init"] = "alv/init.moon",
+ ["alv.parsing"] = "alv/parsing.moon",
+ ["alv.scope"] = "alv/scope.moon",
+
+ ["alv-lib.osc"] = "alv-lib/osc.moon",
+ ["alv-lib.midi"] = "alv-lib/midi.moon",
+ ["alv-lib.sc"] = "alv-lib/sc.moon",
+ ["alv-lib.pilot"] = "alv-lib/pilot.moon",
+ ["alv-lib.random"] = "alv-lib/random.moon",
+ ["alv-lib.util"] = "alv-lib/util.moon",
+ ["alv-lib.string"] = "alv-lib/string.moon",
+ ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
+ ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
+ ["alv-lib.time"] = "alv-lib/time.moon",
+ ["alv-lib.logic"] = "alv-lib/logic.moon",
+ ["alv-lib.math"] = "alv-lib/math.moon",
+ },
+ bin = {
+ "bin/alv",
+ "bin/alv-copilot"
+ },
+ },
+}