Resurrect battery_status_dispatcher_unittest.
[chromium-blink-merge.git] / third_party / stp / genastkinds.py
blob93eb98936e125cbb172bab8603d94df36508cc03
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import os
6 import os.path
7 import subprocess
8 import sys
10 (script, source, out,) = sys.argv[1:]
12 subprocess.check_call([
13 "perl", script,
14 "--file", source,
16 os.rename("ASTKind.cpp", os.path.join(out, "src/lib/AST/ASTKind.cpp"))
17 os.rename("ASTKind.h", os.path.join(out, "src/include/stp/AST/ASTKind.h"))