OLD | NEW |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 dirs=$(find components-chromium -type d | grep -v 'components-chromium/polymer') | 6 dirs=$(find components-chromium -type d | grep -v 'components-chromium/polymer') |
7 | 7 |
8 for dir in $dirs; do | 8 for dir in $dirs; do |
9 htmls=$(\ls $dir/*.html 2>/dev/null | egrep -v '(demo|index)\.html') | 9 htmls=$(\ls $dir/*.html 2>/dev/null) |
michaelpg
2016/04/02 02:15:53
nice
| |
10 if [ "$htmls" ]; then | 10 if [ "$htmls" ]; then |
11 echo "Creating $dir/compiled_resources2.gyp" | 11 echo "Creating $dir/compiled_resources2.gyp" |
12 ../../../tools/polymer/generate_compiled_resources_gyp.py $htmls > \ | 12 ../../../tools/polymer/generate_compiled_resources_gyp.py $htmls > \ |
13 "$dir/compiled_resources2.gyp" | 13 "$dir/compiled_resources2.gyp" |
14 fi | 14 fi |
15 done | 15 done |
OLD | NEW |