-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple.do
More file actions
45 lines (45 loc) · 959 Bytes
/
Copy pathsimple.do
File metadata and controls
45 lines (45 loc) · 959 Bytes
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
namespace main {
vars {
CC="gcc"
FLAGS="-Werror -Wextra -Wall -Wfree-nonheap-object -std=c17"
SOURCES="main.c lexer.c parser.c do.c dynamicarray.c task.c namespace.c"
DLIB_PATH="-L/usr/local/lib/standardloop"
DLIBS="-lstandardloop-logger -lstandardloop-util"
OUPUT_BINARY="do-from-do"
x="yes"
y="test"
}
task main {
cmds {
x="hello"
echo $x
}
}
task test {
cmds {
echo $x
echo "from task test"
}
}
task call {
cmds {
test
echo "from task call"
x="override"
test
}
}
task build {
cmds {
$CC $FLAGS $SOURCES $DLIB_PATH $DLIBS -o $OUPUT_BINARY
}
}
task other {
check {
exit 0
}
cmds {
echo "inside other task"
}
}
}