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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/shadow_dom/tool/build.sh
diff --git a/pkg/shadow_dom/tool/build.sh b/pkg/shadow_dom/tool/build.sh
index 6e2adb758ead866983e0f7ba7f6c672dce82902d..b10ebe77d5142223791415c25ae8791c8c991a59 100755
--- a/pkg/shadow_dom/tool/build.sh
+++ b/pkg/shadow_dom/tool/build.sh
@@ -11,20 +11,24 @@
set -e
DIR=$( cd $( dirname "${BASH_SOURCE[0]}" ) && pwd )
-# Note: dartanalyzer and some tests needs to be run from the root directory
pushd $DIR > /dev/null
-SHADOWDOM_REMOTE=https://github.com/dart-lang/ShadowDOM.git
-SHADOWDOM_DIR=../../../third_party/polymer/ShadowDOM
+POLYMER_REMOTE=https://github.com/Polymer
+POLYMER_DIR=../../../third_party/polymer
-echo "*** Syncing $SHADOWDOM_DIR from $SHADOWDOM_REMOTE"
-if [ -d "$SHADOWDOM_DIR" ]; then
- pushd $SHADOWDOM_DIR > /dev/null
- git pull
- popd
-else
- git clone --branch shadowdom_patches $SHADOWDOM_REMOTE $SHADOWDOM_DIR
-fi
+for NAME in ShadowDOM observe-js WeakMap; 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
+done
echo '*** Installing NPM prerequisites'
npm install
« 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