Autogenerate catapult files if they are not already present. (#978)

* Autogenerate catapult files if they are not already present.

* Fix bash syntax.
This commit is contained in:
Robert Nishihara
2017-09-14 12:37:33 -07:00
committed by Philipp Moritz
parent d516d9440e
commit 413140df38
+3
View File
@@ -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