From 67a124f6a9b34cda21058ced323144c4f04921cb Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 17 Apr 2020 16:19:52 +0200 Subject: mvoe rockspecs to dist/ --- Makefile | 4 -- dist/release | 89 +++++++++++++++++++++++++++++++++++++ dist/rockspecs/alive-scm-1.rockspec | 81 +++++++++++++++++++++++++++++++++ docs/gen/git-version | 25 ----------- rockspecs/alive-scm-1.rockspec | 81 --------------------------------- rockspecs/gen-rockspec.sh | 67 ---------------------------- 6 files changed, 170 insertions(+), 177 deletions(-) create mode 100755 dist/release create mode 100644 dist/rockspecs/alive-scm-1.rockspec delete mode 100755 docs/gen/git-version delete mode 100644 rockspecs/alive-scm-1.rockspec delete mode 100755 rockspecs/gen-rockspec.sh diff --git a/Makefile b/Makefile index b6ac592..72d2cb1 100644 --- a/Makefile +++ b/Makefile @@ -10,10 +10,6 @@ docs: docs/index.html docs/guide.html reference internals test: busted -release: - rm -f alv/version.moon - docs/gen/git-version >alv/version.moon - # docs parts reference: $(MODREFS) docs/reference/index.html internals: docs/internals/index.html 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 <"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 <"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" + }, + }, +} diff --git a/docs/gen/git-version b/docs/gen/git-version deleted file mode 100755 index 495b679..0000000 --- a/docs/gen/git-version +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -TAG=$(git describe --abbrev=0 HEAD) -# REV_SHORT=$(git rev-parse --short HEAD) -# REV_LONG=$(git rev-parse HEAD) - -cat <= 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" - }, - }, -} diff --git a/rockspecs/gen-rockspec.sh b/rockspecs/gen-rockspec.sh deleted file mode 100755 index d832bb1..0000000 --- a/rockspecs/gen-rockspec.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -VERSION="${1:-scm}" -REVISION="${2:-1}" - -if [ "$VERSION" = scm ]; then - WHERE= -else - 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 < "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 -- cgit v1.2.3