From 413140df3846d28c2d56bb1a862a277de9062f2c Mon Sep 17 00:00:00 2001 From: Robert Nishihara Date: Thu, 14 Sep 2017 12:37:33 -0700 Subject: [PATCH] Autogenerate catapult files if they are not already present. (#978) * Autogenerate catapult files if they are not already present. * Fix bash syntax. --- src/thirdparty/build_ui.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/thirdparty/build_ui.sh b/src/thirdparty/build_ui.sh index 17d4372d7..0e4ad2ccf 100755 --- a/src/thirdparty/build_ui.sh +++ b/src/thirdparty/build_ui.sh @@ -37,7 +37,10 @@ if [ ! -d $CATAPULT_HOME ]; then pushd $CATAPULT_HOME git checkout $CATAPULT_COMMIT popd +fi +# If the autogenerated catapult files aren't present, then generate them. +if [ ! -f $CATAPULT_FILES/index.html ]; then python2 $VULCANIZE_BIN --config chrome --output $CATAPULT_FILES/trace_viewer_full.html cp $CATAPULT_HOME/tracing/bin/index.html $CATAPULT_FILES/index.html fi