Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: tools/json_schema_compiler/create_externs.sh

Issue 1006373003: Generate externs automatically from json/idl files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Edits Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/bin/bash
Dan Beam 2015/03/19 19:15:02 :_(
Devlin 2015/03/19 20:59:57 Actually, why is this file even here? Removing.
2 #
3 # Reads the IDL files from chrome/common/extensions/api/ and
4 # writes JS externs for the Closure Compiler to stdout.
5
6 schema_compiler_dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
7 chromium_src_dir="${schema_compiler_dir}/../.."
8
9 set -e
10
11 for f in ${chromium_src_dir}/chrome/common/extensions/api/*.idl; do
12 "${schema_compiler_dir}/compiler.py" "${f}" \
13 --root=${chromium_src_dir} \
14 --generator=externs
15 done
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698