Some checks failed
CI / build (push) Failing after 12s
GitOrigin-RevId: 6370f6ea785709295b6abcf9c60717cacf3ac432
23 lines
539 B
Python
23 lines
539 B
Python
|
|
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
|
|
|
|
# Old stuff moved out of scripts/
|
|
def copy_to_dist(name):
|
|
native.genrule(
|
|
name = name + "_publish",
|
|
srcs = [":" + name],
|
|
outs = ["dist/scripts/" + name],
|
|
cmd = "cp $(execpath :" + name + ") $@",
|
|
)
|
|
|
|
# Old stuff moved out of scripts/
|
|
def package_script(name):
|
|
"""Packages a py_binary script into a tarball.
|
|
|
|
Args:
|
|
name: The name of the py_binary rule.
|
|
"""
|
|
pkg_tar(
|
|
name = name + "_tar",
|
|
srcs = [":" + name],
|
|
)
|