summaryrefslogtreecommitdiff
path: root/deps/v8/tools/turbolizer/deploy.sh
blob: ae069762d9ee44c945f81d851618e993b4063ded (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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 info-view.html $DEST/
copy -R build $DEST/
echo "done!"

echo "Deployed to $DEST/."