v8/tools/turbolizer/deploy.sh
Sigurd Schneider ab445f8b4b [turbolizer] Make deploy script nicer
Change-Id: Ibe96234f101ce1e3a8fd61ccf387aa4bb6da6067
Notry: true
Bug: v8:7327
Reviewed-on: https://chromium-review.googlesource.com/c/1319870
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57293}
2018-11-06 17:46:58 +00:00

24 lines
367 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 *.jpg $DEST/
copy *.png $DEST/
copy *.css $DEST/
copy index.html $DEST/
copy -R build $DEST/
echo "done!"
echo "Deployed to $DEST/."