summaryrefslogtreecommitdiff
path: root/tools/build_third_party.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_third_party.py')
-rwxr-xr-xtools/build_third_party.py9
1 files changed, 2 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()