-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTuppath.lua
More file actions
61 lines (58 loc) · 2.81 KB
/
Tuppath.lua
File metadata and controls
61 lines (58 loc) · 2.81 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
49
50
51
52
53
54
55
56
57
58
59
60
61
function get_dependency_path(name)
if name == 'ot-xmlmesh-core' then
return 'obtools/xmlmesh/core'
elseif name == 'ot-xmlmesh-send' then
return 'obtools/xmlmesh/bindings/cli/send'
elseif name == 'ot-xmlmesh-receive' then
return 'obtools/xmlmesh/bindings/cli/receive'
elseif string.sub(name, 1, 11) == 'ot-xmlmesh-' then
return 'obtools/xmlmesh/' .. string.sub(name, 12)
elseif name == 'ot-toolgen' then
return 'obtools/tools/toolgen'
elseif string.sub(name, 1, 11) == 'ot-obcache-' then
return 'obtools/obcache/libs/' .. string.sub(name, 12)
elseif string.sub(name, 1, 3) == 'ot-' then
return 'obtools/libs/' .. string.sub(name, 4)
elseif name == 'vg-engine' then
return 'engine'
elseif string.sub(name, 1, 15) == 'vg-module-core-' then
return 'modules/core/' .. string.sub(name, 16)
elseif string.sub(name, 1, 17) == 'vg-module-vector-' then
return 'modules/vector/' .. string.sub(name, 18)
elseif string.sub(name, 1, 13) == 'vg-module-ui-' then
return 'modules/ui/' .. string.sub(name, 14)
elseif string.sub(name, 1, 16) == 'vg-module-laser-' then
return 'modules/laser/' .. string.sub(name, 17)
elseif string.sub(name, 1, 15) == 'vg-module-midi-' then
return 'modules/midi/' .. string.sub(name, 16)
elseif string.sub(name, 1, 16) == 'vg-module-audio-' then
return 'modules/audio/' .. string.sub(name, 17)
elseif string.sub(name, 1, 14) == 'vg-module-dmx-' then
return 'modules/dmx/' .. string.sub(name, 15)
elseif string.sub(name, 1, 14) == 'vg-module-iot-' then
return 'modules/iot/' .. string.sub(name, 15)
elseif string.sub(name, 1, 22) == 'vg-module-time-series-' then
return 'modules/time-series/' .. string.sub(name, 23)
elseif string.sub(name, 1, 17) == 'vg-module-bitmap-' then
return 'modules/bitmap/' .. string.sub(name, 18)
elseif string.sub(name, 1, 17) == 'vg-module-colour-' then
return 'modules/colour/' .. string.sub(name, 18)
elseif string.sub(name, 1, 19) == 'vg-module-waveform-' then
return 'modules/waveform/' .. string.sub(name, 20)
elseif string.sub(name, 1, 16) == 'vg-module-maths-' then
return 'modules/maths/' .. string.sub(name, 17)
elseif string.sub(name, 1, 18) == 'vg-module-trigger-' then
return 'modules/trigger/' .. string.sub(name, 19)
elseif string.sub(name, 1, 17) == 'vg-module-binary-' then
return 'modules/binary/' .. string.sub(name, 18)
elseif string.sub(name, 1, 18) == 'vg-module-control-' then
return 'modules/control/' .. string.sub(name, 19)
elseif string.sub(name, 1, 15) == 'vg-module-time-' then
return 'modules/time/' .. string.sub(name, 16)
elseif string.sub(name, 1, 17) == 'vg-module-object-' then
return 'modules/object/' .. string.sub(name, 18)
elseif string.sub(name, 1, 3) == 'vg-' then
return 'libs/' .. string.sub(name, 4)
end
return nil
end