Files
sdk/pkg/shadow_dom/tool/build.sh
T
jmesserly@google.com e70b74ee29 update shadow_dom
ShadowDOM is at revision 82461fdbe7b0208960cf1d52f2b1c5ca31e1e564
  observe-js is at revision 842f9c0602350f8d81ea20637266c2398575c77d
  WeakMap is at revision 67bd3b198a131748c73cd274532d69692f1a8c24
  platform-dev is at revision 64a92f273462f04a84abbe2f054294f2b62dbcd6

R=sigmund@google.com

Review URL: https://codereview.chromium.org//84163002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30593 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-22 22:37:43 +00:00

45 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
# Usage: call directly in the commandline as test/run.sh ensuring that you have
# both 'dart' and 'content_shell' in your path. Filter tests by passing a
# pattern as an argument to this script.
# bail on error
set -e
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
pushd $DIR > /dev/null
POLYMER_REMOTE=https://github.com/Polymer
POLYMER_DIR=../../../third_party/polymer
NEWLINE=$'\n'
REVISIONS=""
for NAME in ShadowDOM observe-js WeakMap platform-dev; do
GIT_REMOTE="$POLYMER_REMOTE/$NAME.git"
GIT_DIR="$POLYMER_DIR/$NAME"
echo "*** Syncing $GIT_DIR from $GIT_REMOTE"
if [ -d "$GIT_DIR" ]; then
pushd $GIT_DIR > /dev/null
git remote set-url origin $GIT_REMOTE
git pull
popd
else
git clone $GIT_REMOTE $GIT_DIR
fi
pushd $GIT_DIR > /dev/null
REVISIONS="$REVISIONS $NEWLINE $NAME is at revision `git rev-parse HEAD`"
popd
done
echo '*** Installing NPM prerequisites'
npm install
echo '*** Running grunt'
grunt
echo "*** Revision hash to use in commit message: $REVISIONS"