mirror of
https://github.com/tensorflow/tensorflow.git
synced 2024-11-21 21:05:19 +00:00
a9db142c32
PiperOrigin-RevId: 392896869 Change-Id: I83c2ff515dd49b6ff985a1157823d3290414fd06
13 lines
351 B
Python
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
|