aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/docs/generate_dot_graphs.py
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2016-12-19 19:43:41 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-12-19 22:10:46 +0000
commita7a9dbc5d07171c3010ee4297baa6cfd483ff4a6 (patch)
tree06213d11da51d92e80176f06bbdd2e223291c0aa /scripts/docs/generate_dot_graphs.py
parent845f78a979c842538e15383874592252161e7048 (diff)
*** Reason for rollback *** Breaks CI "Parameter 'url' has no default value", see http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1104/console. *** Original change description *** Make Bazel build dot This change has several parts, it: * Adds a "make" repository rule, which runs ./configure && make on a repository. * Modifies the tar.gz decompressor to restore timestamps. This was an issue with dot, as make examines the timestamp to determine if files need to be rebuilt. Because Bazel was not preserving the archive's timestamp, it was rebuilding things that it did not need to (and, I think, exposed some bugs in dot's Makefile). * Actually add dot as an externa... *** -- PiperOrigin-RevId: 142469299 MOS_MIGRATED_REVID=142469299
Diffstat (limited to 'scripts/docs/generate_dot_graphs.py')
-rw-r--r--scripts/docs/generate_dot_graphs.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/docs/generate_dot_graphs.py b/scripts/docs/generate_dot_graphs.py
index f8d26e0449..306d5e12b0 100644
--- a/scripts/docs/generate_dot_graphs.py
+++ b/scripts/docs/generate_dot_graphs.py
@@ -18,8 +18,6 @@ import os
from scripts.docs.dot_converter import DotConverter
-if __name__ == '__main__':
- converter = DotConverter(
- ['%s/external/dot/cmd/dot/dot' % os.environ['PWD'], '-Tsvg'],
- os.environ.copy())
+if __name__ == "__main__":
+ converter = DotConverter(["dot", "-Tsvg"], os.environ.copy())
converter.convert()