summaryrefslogtreecommitdiffstats
path: root/third_party/polymer/reproduce.sh
blob: 4fc7febcb13205092b31c7993a63b77110658b5a (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
25
26
27
28
29
30
31
#!/bin/bash

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Reproduces the content of 'components' and 'components-chromium' using the
# list of dependencies from 'bower.json'. Downloads needed packages and makes
# Chromium specific modifications. To launch the script you need 'bower' and
# 'vulcanize' to be install in your system.

set -e

cd "$(dirname "$0")"

rm -rf components components-chromium

bower install

# These components are deprecated or needed only for demos.
rm -rf components/{core-component-page,core-field,font-roboto,webcomponentsjs}

# Make checkperms.py happy.
find components/{core-list,core-resizable} -type f -exec chmod -x {} \;

# TODO(dzhioev): remove when
# https://code.google.com/p/grit-i18n/issues/detail?id=30 is fixed
patch -p1 < chromium.patch

./extract_inline_scripts.sh components components-chromium