#!/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
rm -rf components/web-animations-js
find components/core-list -type f -exec chmod -x {} \;
./extract_inline_scripts.sh components components-chromium