BUCK
736 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
python_binary(
name = 'onos-app-writer',
main = 'onos_app.py',
deps = [],
visibility = ['PUBLIC'],
)
python_binary(
name = 'onos-app-oar',
main = 'onos_oar.py',
deps = [],
visibility = ['PUBLIC'],
)
python_binary(
name = 'onos-stage',
main = 'onos_stage.py',
deps = [],
visibility = ['PUBLIC'],
)
python_binary(
name = 'onos-feature',
main = 'onos_feature.py',
deps = [],
visibility = ['PUBLIC'],
)
def shquote(s):
return s.replace("'", "'\\''")
def os_path():
from os import environ
return environ.get('PATH')
genrule(
name = 'buck',
cmd = 'echo buck=`which buck`>$OUT;' +
("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
out = 'buck.properties',
visibility = ['PUBLIC'],
)