v8/tools/turbolizer/deploy.sh
jiepan 97953dd6e2 [turbolizer] Fix CSS file path in deploy script
In previous refactoring, the CSS files are moved to subdirectory css

Change-Id: I38e05ae1a9e56f36d5bd25131e605a93cfdb61f9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3701958
Commit-Queue: Jie Pan <jie.pan@intel.com>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81120}
2022-06-14 01:48:23 +00:00

25 lines
396 B
Bash
Executable File

#!/bin/bash
DEST=$1
if [ ! -d "$DEST" ]; then
echo -e "Destination \"$DEST\" is not a directory. Run\n\tnpm deploy -- [destination-directory]"
exit 1
fi
function copy() {
echo -n "."
cp "$@"
}
echo -n "Deploying..."
copy *.png $DEST/
copy index.html $DEST/
copy info-view.html $DEST/
copy -R build $DEST/
copy -R img $DEST/
copy -R css $DEST/
echo "done!"
echo "Deployed to $DEST/."