Fix the units for the draw_properties benchmark.
[chromium-blink-merge.git] / third_party / polymer / reproduce.sh
blobec1ebff9d0a98e3084aefb8dcd1cc87701faa23f
1 #!/bin/bash
3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 # Reproduces the content of 'components' and 'components-chromium' using the
8 # list of dependencies from 'bower.json'. Downloads needed packages and makes
9 # Chromium specific modifications. To launch the script you need 'bower' and
10 # 'vulcanize' to be install in your system.
12 set -e
14 cd "$(dirname "$0")"
16 rm -rf components components-chromium
17 rm -rf ../web-animations-js/sources
19 bower install
21 rm -rf components/web-animations-js/{test,node_modules}
22 # TODO(jlklein): Remove when
23 # https://github.com/web-animations/web-animations-next/pull/289 is released
24 # and the version of web-animations-js is bumped in bower.json.
25 rm components/web-animations-js/.travis-setup.sh
27 mv components/web-animations-js ../web-animations-js/sources
28 cp ../web-animations-js/sources/COPYING ../web-animations-js/LICENSE
30 # These components are deprecated or needed only for demos.
31 rm -rf components/{core-component-page,core-field,font-roboto,webcomponentsjs}
33 # Make checkperms.py happy.
34 find components/{core-list,core-resizable} -type f -exec chmod -x {} \;
36 # Remove carriage returns to make CQ happy.
37 find components -type f \( -name \*.html -o -name \*.css -o -name \*.js\
38 -o -name \*.md -o -name \*.sh -o -name \*.json -o -name \*.gitignore \)\
39 -print0 | xargs -0 sed -i -e $'s/\r$//g'
41 # TODO(dzhioev): remove when
42 # https://code.google.com/p/grit-i18n/issues/detail?id=30 is fixed
43 patch -p1 < chromium.patch
45 ./extract_inline_scripts.sh components components-chromium