tensorflow/third_party/pasta/build_defs.bzl
TensorFlower Gardener a9db142c32 Merge pull request #51474 from rrbutani:pasta-repo-patch
PiperOrigin-RevId: 392896869
Change-Id: I83c2ff515dd49b6ff985a1157823d3290414fd06
2021-08-25 08:05:07 -07:00

13 lines
351 B
Python

"""Starlark macros for building pasta."""
def copy_srcs(srcs):
"""Copies srcs from 'pasta' to parent directory."""
for src in srcs:
native.genrule(
name = src.replace(".", "_"),
srcs = ["pasta/" + src],
outs = [src],
cmd = "mkdir -p $$(dirname $@); cp $< $@",
)
return srcs