diff options
-rwxr-xr-x | tools/build_third_party.py | 9 | ||||
-rwxr-xr-x | tools/format.sh | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/tools/build_third_party.py b/tools/build_third_party.py index caaf3bfaf..7457bb51b 100755 --- a/tools/build_third_party.py +++ b/tools/build_third_party.py @@ -9,27 +9,22 @@ import os import subprocess -import argparse root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) third_party_path = os.path.join(root_path, "third_party") -script_name = "build_third_party.py" -parser = argparse.ArgumentParser(description=""" -This script updates the third party dependencies of deno. -""") -parser.parse_args() def main(): os.chdir(third_party_path) run(["gclient", "sync", "--no-history"]) run(["yarn"]) - print "Done (" + script_name + ")" + def run(args): print " ".join(args) env = os.environ.copy() subprocess.check_call(args, env=env) + if '__main__' == __name__: main() diff --git a/tools/format.sh b/tools/format.sh index bbb0c93c8..2845ecd64 100755 --- a/tools/format.sh +++ b/tools/format.sh @@ -9,6 +9,8 @@ gn format rust.gni gn format .gn yapf -i js/*.py +yapf -i tools/*.py + prettier --write \ js/deno.d.ts \ js/main.ts \ |