Chromium Code Reviews| Index: third_party/polymer/v1_0/generate_gyp.sh |
| diff --git a/third_party/polymer/v1_0/generate_gyp.sh b/third_party/polymer/v1_0/generate_gyp.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..f67b6c2321465322a60c526b744feb354d7f8fe9 |
| --- /dev/null |
| +++ b/third_party/polymer/v1_0/generate_gyp.sh |
| @@ -0,0 +1,12 @@ |
| +#!/bin/sh |
| + |
| +dirs=$(find components-chromium -type d | grep -v 'components-chromium/polymer') |
| + |
| +for dir in $dirs; do |
| + htmls=$(/bin/ls $dir/*.html 2>/dev/null | grep -v 'index\.html') |
|
michaelpg
2016/02/16 19:22:21
as a bash noob: why /bin/ls instead of \ls
Dan Beam
2016/02/16 21:05:50
/bin/ls because many people alias the `ls` command
michaelpg
2016/02/17 06:26:48
ya but that's why you use \ls
$ alias ls='sudo rm
Dan Beam
2016/02/17 17:23:11
Done.
|
| + if [ "$htmls" ]; then |
| + echo "Generating GYP for $dir" |
| + ../../../tools/polymer/generate_compiled_resources_gypi.py $htmls > \ |
| + "$dir/compiled_resources2.gyp" |
| + fi |
| +done |