blob: 405d60da15eaf8aa16983c5d2abf7b412af754ef [file] [log] [blame]
python_binary(
name = 'download_all',
main = 'download_all.py',
visibility = ['PUBLIC'],
)
python_binary(
name = 'download_file',
main = 'download_file.py',
visibility = ['PUBLIC'],
)
python_binary(
name = 'pack_war',
main = 'pack_war.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_binary(
name = 'maven_deploy',
main = 'maven_deploy.py',
deps = [':util'],
visibility = ['PUBLIC'],
)
python_library(
name = 'util',
srcs = ['util.py'],
visibility = ['PUBLIC'],
)
def shquote(s):
return s.replace("'", "'\\''")
def os_path():
from os import environ
return environ.get('PATH')
genrule(
name = 'buck.properties',
cmd = 'echo buck=`which buck`>$OUT;' +
("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())),
srcs = [],
deps = [],
out = 'buck.properties',
visibility = ['PUBLIC'],
)