aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorflow.bzl
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-04-25 13:53:37 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-04-25 15:01:28 -0700
commit24e1e6cd24a313e2ea208a4893e64bc08400bd43 (patch)
treee536a61bef9c81c1c1eaee003ee4996cdca0ca7a /tensorflow/tensorflow.bzl
parent543a400300753a8721b31d4aacd3022c23bae6bb (diff)
Switch attr_value_util.cc to use proto_text for parsing text format.
Change: 120750028
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r--tensorflow/tensorflow.bzl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl
index 3e92e73b80..9fe440a047 100644
--- a/tensorflow/tensorflow.bzl
+++ b/tensorflow/tensorflow.bzl
@@ -616,3 +616,8 @@ def tf_generate_proto_text_sources(name, srcs_relative_dir, srcs):
tools = ["//tensorflow/tools/proto_text:gen_proto_text_functions"],
)
return struct(hdrs=out_hdrs, srcs=out_srcs)
+
+def tf_genrule_cmd_append_to_srcs(to_append):
+ return ("cat $(SRCS) > $(@) && " +
+ "echo >> $(@) && " +
+ "echo " + to_append + " >> $(@)")