Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: pkg/shadow_dom/tool/build.sh

Issue 24129004: fix shadowdom polyfill (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 # Usage: call directly in the commandline as test/run.sh ensuring that you have 6 # Usage: call directly in the commandline as test/run.sh ensuring that you have
7 # both 'dart' and 'content_shell' in your path. Filter tests by passing a 7 # both 'dart' and 'content_shell' in your path. Filter tests by passing a
8 # pattern as an argument to this script. 8 # pattern as an argument to this script.
9 9
10 # bail on error 10 # bail on error
11 set -e 11 set -e
12 12
13 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd ) 13 DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
14 # Note: dartanalyzer and some tests needs to be run from the root directory
15 pushd $DIR > /dev/null 14 pushd $DIR > /dev/null
16 15
17 SHADOWDOM_REMOTE=https://github.com/dart-lang/ShadowDOM.git 16 POLYMER_REMOTE=https://github.com/Polymer
18 SHADOWDOM_DIR=../../../third_party/polymer/ShadowDOM 17 POLYMER_DIR=../../../third_party/polymer
19 18
20 echo "*** Syncing $SHADOWDOM_DIR from $SHADOWDOM_REMOTE" 19 for NAME in ShadowDOM observe-js WeakMap; do
21 if [ -d "$SHADOWDOM_DIR" ]; then 20 GIT_REMOTE="$POLYMER_REMOTE/$NAME.git"
22 pushd $SHADOWDOM_DIR > /dev/null 21 GIT_DIR="$POLYMER_DIR/$NAME"
23 git pull 22 echo "*** Syncing $GIT_DIR from $GIT_REMOTE"
24 popd 23 if [ -d "$GIT_DIR" ]; then
25 else 24 pushd $GIT_DIR > /dev/null
26 git clone --branch shadowdom_patches $SHADOWDOM_REMOTE $SHADOWDOM_DIR 25 git remote set-url origin $GIT_REMOTE
27 fi 26 git pull
27 popd
28 else
29 git clone $GIT_REMOTE $GIT_DIR
30 fi
31 done
28 32
29 echo '*** Installing NPM prerequisites' 33 echo '*** Installing NPM prerequisites'
30 npm install 34 npm install
31 35
32 echo '*** Running grunt' 36 echo '*** Running grunt'
33 grunt 37 grunt
OLDNEW
« no previous file with comments | « pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698