git.s-ol.nu alive / 67a124f
mvoe rockspecs to dist/ s-ol 1 year, 2 months ago
6 changed file(s) with 170 addition(s) and 177 deletion(s). Raw diff Collapse all Expand all
88
99 test:
1010 busted
11
12 release:
13 rm -f alv/version.moon
14 docs/gen/git-version >alv/version.moon
1511
1612 # docs parts
1713 reference: $(MODREFS) docs/reference/index.html
0 #!/bin/sh
1 VERSION="${1:-scm}"
2 REVISION="${2:-1}"
3
4 if [ "$VERSION" = scm ]; then
5 WHERE=
6 else
7 git tag "$VERSION"
8
9 cat <<EOF >"alv/version.moon"
10 ----
11 -- \`alive\` source code version information.
12 --
13 -- @module version
14
15 --- exports
16 -- @table exports
17 -- @tfield string tag the last versions git tag
18 -- @tfield string web the repo web URL
19 -- @tfield string repo the git repo URL
20 -- @tfield string release the web URL of this release
21 {
22 tag: "${VERSION}"
23 web: "https://github.com/s-ol/alivecoding"
24 repo: "https://github.com/s-ol/alivecoding.git"
25 release: "https://github.com/s-ol/alivecoding/releases/tag/${VERSION}"
26 }
27 EOF
28
29 WHERE="
30 tag = \"$VERSION\","
31 VERSION="${VERSION#v}"
32 VERSION=$(echo "$VERSION" | tr -d -)
33 fi
34
35 list_modules() {
36 find "$1" -type f -name '*.moon' -exec sh -c '
37 MODULE=$(echo "$1" | sed -e "s/\.moon$//" -e "s/\//./g")
38 echo " [\"$MODULE\"] = \"$1\","
39 ' sh {} \;
40 }
41
42 cat <<STOP >"dist/rockspecs/alive-$VERSION-$REVISION.rockspec"
43 package = "alive"
44 version = "$VERSION-$REVISION"
45
46 source = {
47 url = "git://github.com/s-ol/alivecoding.git",$WHERE
48 }
49
50 description = {
51 summary = "Experimental livecoding environment with persistent expressions",
52 detailed = [[
53 This is an experimental livecoding language and environment, in which
54 expressions persist and update until they are removed from the source code, and
55 the interpreter keeps no state that you cannot manipulate directly in the
56 source. This yields a direct-manipulation like experience with a purely
57 text-based language and works without special editor support.]],
58 homepage = "https://alive.s-ol.nu",
59 license = "GPL-3",
60 }
61
62 dependencies = {
63 "lua >= 5.3",
64 "moonscript >= 0.5.0",
65 "lpeg ~> 0.10",
66 "luafilesystem",
67 "luasystem",
68 "luasocket",
69 "osc",
70 }
71
72 build = {
73 type = "builtin",
74 modules = {},
75 copy_directories = { "docs" },
76 install = {
77 lua = {
78 $(list_modules alv)
79
80 $(list_modules alv-lib)
81 },
82 bin = {
83 "bin/alv",
84 "bin/alv-copilot"
85 },
86 },
87 }
88 STOP
0 package = "alive"
1 version = "scm-1"
2
3 source = {
4 url = "git://github.com/s-ol/alivecoding.git",
5 }
6
7 description = {
8 summary = "Experimental livecoding environment with persistent expressions",
9 detailed = [[
10 This is an experimental livecoding language and environment, in which
11 expressions persist and update until they are removed from the source code, and
12 the interpreter keeps no state that you cannot manipulate directly in the
13 source. This yields a direct-manipulation like experience with a purely
14 text-based language and works without special editor support.]],
15 homepage = "https://alive.s-ol.nu",
16 license = "GPL-3",
17 }
18
19 dependencies = {
20 "lua >= 5.3",
21 "moonscript >= 0.5.0",
22 "lpeg ~> 0.10",
23 "luafilesystem",
24 "luasystem",
25 "luasocket",
26 "osc",
27 }
28
29 build = {
30 type = "builtin",
31 modules = {},
32 copy_directories = { "docs" },
33 install = {
34 lua = {
35 ["alv.result"] = "alv/result.moon",
36 ["alv.stream.io"] = "alv/stream/io.moon",
37 ["alv.stream.base"] = "alv/stream/base.moon",
38 ["alv.stream.value"] = "alv/stream/value.moon",
39 ["alv.stream.event"] = "alv/stream/event.moon",
40 ["alv.stream.init"] = "alv/stream/init.moon",
41 ["alv.builtin"] = "alv/builtin.moon",
42 ["alv.cell"] = "alv/cell.moon",
43 ["alv.tag"] = "alv/tag.moon",
44 ["alv.copilot"] = "alv/copilot.moon",
45 ["alv.version"] = "alv/version.moon",
46 ["alv.error"] = "alv/error.moon",
47 ["alv.invoke"] = "alv/invoke.moon",
48 ["alv.cycle"] = "alv/cycle.moon",
49 ["alv.ast"] = "alv/ast.moon",
50 ["alv.base.builtin"] = "alv/base/builtin.moon",
51 ["alv.base.op"] = "alv/base/op.moon",
52 ["alv.base.fndef"] = "alv/base/fndef.moon",
53 ["alv.base.match"] = "alv/base/match.moon",
54 ["alv.base.input"] = "alv/base/input.moon",
55 ["alv.base.init"] = "alv/base/init.moon",
56 ["alv.registry"] = "alv/registry.moon",
57 ["alv.logger"] = "alv/logger.moon",
58 ["alv.init"] = "alv/init.moon",
59 ["alv.parsing"] = "alv/parsing.moon",
60 ["alv.scope"] = "alv/scope.moon",
61
62 ["alv-lib.osc"] = "alv-lib/osc.moon",
63 ["alv-lib.midi"] = "alv-lib/midi.moon",
64 ["alv-lib.sc"] = "alv-lib/sc.moon",
65 ["alv-lib.pilot"] = "alv-lib/pilot.moon",
66 ["alv-lib.random"] = "alv-lib/random.moon",
67 ["alv-lib.util"] = "alv-lib/util.moon",
68 ["alv-lib.string"] = "alv-lib/string.moon",
69 ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
70 ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
71 ["alv-lib.time"] = "alv-lib/time.moon",
72 ["alv-lib.logic"] = "alv-lib/logic.moon",
73 ["alv-lib.math"] = "alv-lib/math.moon",
74 },
75 bin = {
76 "bin/alv",
77 "bin/alv-copilot"
78 },
79 },
80 }
+0
-25
docs/gen/git-version less more
0 #!/bin/sh
1
2 TAG=$(git describe --abbrev=0 HEAD)
3 # REV_SHORT=$(git rev-parse --short HEAD)
4 # REV_LONG=$(git rev-parse HEAD)
5
6 cat <<EOF
7 ----
8 -- \`alive\` source code version information.
9 --
10 -- @module version
11
12 --- exports
13 -- @table exports
14 -- @tfield string tag the last versions git tag
15 -- @tfield string web the repo web URL
16 -- @tfield string repo the git repo URL
17 -- @tfield string release the web URL of this release
18 {
19 tag: "${TAG}"
20 web: "https://github.com/s-ol/alivecoding"
21 repo: "https://github.com/s-ol/alivecoding.git"
22 release: "https://github.com/s-ol/alivecoding/releases/tag/${TAG}"
23 }
24 EOF
+0
-81
rockspecs/alive-scm-1.rockspec less more
0 package = "alive"
1 version = "scm-1"
2
3 source = {
4 url = "git://github.com/s-ol/alivecoding.git",
5 }
6
7 description = {
8 summary = "Experimental livecoding environment with persistent expressions",
9 detailed = [[
10 This is an experimental livecoding language and environment, in which
11 expressions persist and update until they are removed from the source code, and
12 the interpreter keeps no state that you cannot manipulate directly in the
13 source. This yields a direct-manipulation like experience with a purely
14 text-based language and works without special editor support.]],
15 homepage = "https://alive.s-ol.nu",
16 license = "GPL-3",
17 }
18
19 dependencies = {
20 "lua >= 5.3",
21 "moonscript >= 0.5.0",
22 "lpeg ~> 0.10",
23 "luafilesystem",
24 "luasystem",
25 "luasocket",
26 "osc",
27 }
28
29 build = {
30 type = "builtin",
31 modules = {},
32 copy_directories = { "docs" },
33 install = {
34 lua = {
35 ["alv.result"] = "alv/result.moon",
36 ["alv.stream.io"] = "alv/stream/io.moon",
37 ["alv.stream.base"] = "alv/stream/base.moon",
38 ["alv.stream.value"] = "alv/stream/value.moon",
39 ["alv.stream.event"] = "alv/stream/event.moon",
40 ["alv.stream.init"] = "alv/stream/init.moon",
41 ["alv.builtin"] = "alv/builtin.moon",
42 ["alv.cell"] = "alv/cell.moon",
43 ["alv.tag"] = "alv/tag.moon",
44 ["alv.copilot"] = "alv/copilot.moon",
45 ["alv.version"] = "alv/version.moon",
46 ["alv.error"] = "alv/error.moon",
47 ["alv.invoke"] = "alv/invoke.moon",
48 ["alv.cycle"] = "alv/cycle.moon",
49 ["alv.ast"] = "alv/ast.moon",
50 ["alv.base.builtin"] = "alv/base/builtin.moon",
51 ["alv.base.op"] = "alv/base/op.moon",
52 ["alv.base.fndef"] = "alv/base/fndef.moon",
53 ["alv.base.match"] = "alv/base/match.moon",
54 ["alv.base.input"] = "alv/base/input.moon",
55 ["alv.base.init"] = "alv/base/init.moon",
56 ["alv.registry"] = "alv/registry.moon",
57 ["alv.logger"] = "alv/logger.moon",
58 ["alv.init"] = "alv/init.moon",
59 ["alv.parsing"] = "alv/parsing.moon",
60 ["alv.scope"] = "alv/scope.moon",
61
62 ["alv-lib.osc"] = "alv-lib/osc.moon",
63 ["alv-lib.midi"] = "alv-lib/midi.moon",
64 ["alv-lib.sc"] = "alv-lib/sc.moon",
65 ["alv-lib.pilot"] = "alv-lib/pilot.moon",
66 ["alv-lib.random"] = "alv-lib/random.moon",
67 ["alv-lib.util"] = "alv-lib/util.moon",
68 ["alv-lib.string"] = "alv-lib/string.moon",
69 ["alv-lib.midi.launchctl"] = "alv-lib/midi/launchctl.moon",
70 ["alv-lib.midi.core"] = "alv-lib/midi/core.moon",
71 ["alv-lib.time"] = "alv-lib/time.moon",
72 ["alv-lib.logic"] = "alv-lib/logic.moon",
73 ["alv-lib.math"] = "alv-lib/math.moon",
74 },
75 bin = {
76 "bin/alv",
77 "bin/alv-copilot"
78 },
79 },
80 }
+0
-67
rockspecs/gen-rockspec.sh less more
0 #!/bin/sh
1 VERSION="${1:-scm}"
2 REVISION="${2:-1}"
3
4 if [ "$VERSION" = scm ]; then
5 WHERE=
6 else
7 WHERE="
8 tag = \"$VERSION\","
9 VERSION="${VERSION#v}"
10 VERSION=$(echo "$VERSION" | tr -d -)
11 fi
12
13 list_modules() {
14 find "$1" -type f -name '*.moon' -exec sh -c '
15 MODULE=$(echo "$1" | sed -e "s/\.moon$//" -e "s/\//./g")
16 echo " [\"$MODULE\"] = \"$1\","
17 ' sh {} \;
18 }
19
20 cat <<STOP > "rockspecs/alive-$VERSION-$REVISION.rockspec"
21 package = "alive"
22 version = "$VERSION-$REVISION"
23
24 source = {
25 url = "git://github.com/s-ol/alivecoding.git",$WHERE
26 }
27
28 description = {
29 summary = "Experimental livecoding environment with persistent expressions",
30 detailed = [[
31 This is an experimental livecoding language and environment, in which
32 expressions persist and update until they are removed from the source code, and
33 the interpreter keeps no state that you cannot manipulate directly in the
34 source. This yields a direct-manipulation like experience with a purely
35 text-based language and works without special editor support.]],
36 homepage = "https://alive.s-ol.nu",
37 license = "GPL-3",
38 }
39
40 dependencies = {
41 "lua >= 5.3",
42 "moonscript >= 0.5.0",
43 "lpeg ~> 0.10",
44 "luafilesystem",
45 "luasystem",
46 "luasocket",
47 "osc",
48 }
49
50 build = {
51 type = "builtin",
52 modules = {},
53 copy_directories = { "docs" },
54 install = {
55 lua = {
56 $(list_modules alv)
57
58 $(list_modules alv-lib)
59 },
60 bin = {
61 "bin/alv",
62 "bin/alv-copilot"
63 },
64 },
65 }
66 STOP