This repository was archived by the owner on May 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathTupfile.lua
More file actions
48 lines (42 loc) · 1.33 KB
/
Tupfile.lua
File metadata and controls
48 lines (42 loc) · 1.33 KB
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
-- For use with Tup: <http://gittup.org/tup/>
local sources = {
"LNVL.lua",
"src/*.lua",
"src/settings.lua.example",
"src/rgb.txt",
"examples/*.lua",
"main.lua",
}
tup.rule(
{"LNVL.lua", "./src/*.lua", "./src/settings.lua.example"},
"^ Running luacheck on LNVL^ luacheck %f --std=luajit"
)
-- Our invocation of Luacheck on the example/test code uses many more
-- options because we have to make the scripts aware of the global
-- shortcut constructors that LNVL provides, among other things.
tup.rule(
{"main.lua", "./examples"},
[[^ Running luacheck on examples^ luacheck %f \
--std=luajit --globals love \
--read-globals Scene Character Color Set Get ChangeToScene Pause Menu ChangeSceneBackgroundTo \
--allow-defined-top \
--ignore="password" \
--no-unused --no-unused-globals]]
)
tup.rule(
sources,
[[^ Creating TAGS^ ctags-exuberant -e --languages=lua %f \
--regex-lua="/Processors\[\"([a-z-]+)\"\].+/Opcode.\1/" \
--regex-lua="/Implementations\[\"([a-z-]+)\"\].+/Instruction.\1/"]],
{"TAGS"}
)
tup.rule(
{"src/settings.lua.example"},
"^ Creating src/settings.lua^ cp %f %o",
{"src/settings.lua"}
)
tup.rule(
sources,
"^ Creating LNVL.love^ zip --quiet --recurse-paths --compression-method store --update %o %f",
{"LNVL.love"}
)