diff options
author | Kristina Chodorow <kchodorow@google.com> | 2017-02-09 21:13:13 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2017-02-10 15:34:12 +0000 |
commit | fc9750c5828f398bb448dcb6c6de7e195a744eba (patch) | |
tree | 6c22f632a203c14242527cec0bea1694974afd04 /site/BUILD | |
parent | 751703c9156bda354c4b68dc4b180f7be3522def (diff) |
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
Diffstat (limited to 'site/BUILD')
-rw-r--r-- | site/BUILD | 6 |
1 files changed, 5 insertions, 1 deletions
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/$@ * |