From fc9750c5828f398bb448dcb6c6de7e195a744eba Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Thu, 9 Feb 2017 21:13:13 +0000 Subject: Roll forward of change 142452055 Removes dot scrubbing from the Bazel export process. If dot isn't installed on the build dot-graph, the graphs will just be absent (they are defined in HTML comments). -- PiperOrigin-RevId: 147071737 MOS_MIGRATED_REVID=147071737 --- site/BUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'site/BUILD') diff --git a/site/BUILD b/site/BUILD index 711c819947..7f290c70de 100644 --- a/site/BUILD +++ b/site/BUILD @@ -106,7 +106,11 @@ origdir=$$PWD tmpdir=$$(mktemp -d) for f in $(SRCS); do mkdir -p $$tmpdir/$$(dirname $$f) - $(location //scripts/docs:generate_dot_graphs) < $$f > $$tmpdir/$$f + if which dot; then + $(location //scripts/docs:generate_dot_graphs) < $$f > $$tmpdir/$$f + else + cp $$f $$tempdir/$$f + fi done cd $$tmpdir/site tar cf $$origdir/$@ * -- cgit v1.2.3