forked from replit/polygott
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforth.toml
53 lines (46 loc) · 937 Bytes
/
forth.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name = "forth"
entrypoint = "main.fth"
extensions = [
"fth",
"4th"
]
packages = [
"libtool-bin",
"libffi-dev",
"automake",
"m4",
"gforth", "gforth-lib", "gforth-common"
]
setup = [
"pushd /tmp",
"wget -O gforth-0.7.9.tar.xz http://www.complang.tuwien.ac.at/forth/gforth/Snapshots/0.7.9_20200716/gforth-0.7.9_20200716.tar.xz",
"tar -Jxf gforth-0.7.9.tar.xz",
"rm gforth-0.7.9.tar.xz",
"mv gforth-0.7.9_* gforth-0.7.9",
"cd gforth-0.7.9",
"cd unix",
"[ -e stat-fsi.c ] || wget -O stat-fsi.c https://git.savannah.gnu.org/cgit/gforth.git/plain/unix/stat-fsi.c",
"gcc stat-fsi.c -o stat-fsi",
"./stat-fsi > stat.fs",
"cd ..",
"./autogen.sh",
"./configure",
"make",
"make more",
"make install",
"cd ..",
"rm -rf /tmp/gforth-0.7.9",
"popd"
]
[run]
command = [
"gforth",
"--",
"./main.fth",
"-e",
"bye"
]
[tests]
[tests.hello]
code = ".\" hello\" CR"
output = "hello\n"