blob: 96c787aa6c3ee47d5aa567fa129d649c2edff60d [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001python_binary(
2 name = 'download_file',
3 main = 'download_file.py',
4 deps = [':util'],
5 visibility = ['PUBLIC'],
6)
7
8python_binary(
9 name = 'pack_war',
10 main = 'pack_war.py',
11 deps = [':util'],
12 visibility = ['PUBLIC'],
13)
14
15python_library(
16 name = 'util',
17 srcs = [
18 'util.py',
19 '__init__.py'
20 ],
21 visibility = ['PUBLIC'],
22)
23
24def shquote(s):
25 return s.replace("'", "'\\''")
26
27def os_path():
28 from os import environ
29 return environ.get('PATH')
30
31genrule(
32 name = 'buck',
33 cmd = 'echo buck=`which buck`>$OUT;' +
34 ("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
35 out = 'buck.properties',
36 visibility = ['PUBLIC'],
37)
38