yesod-mirror/experimental/users/acmcarther/build_defs.bzl
Copybara 8157b39ea4
Some checks failed
CI / build (push) Failing after 12s
Project import generated by Copybara.
GitOrigin-RevId: 6370f6ea785709295b6abcf9c60717cacf3ac432
2026-01-20 21:26:21 +00:00

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],
)