Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: build.py

Issue 29753557: Noissue - Make branch 'edge' compatible with #6021 (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/file/02cd0e01c0ba
Patch Set: Created April 16, 2018, 10:13 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # coding: utf-8 2 # coding: utf-8
3 3
4 import os 4 import os
5 import sys 5 import sys
6 import subprocess 6 import subprocess
7 7
8 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) 8 BASE_DIR = os.path.dirname(os.path.abspath(__file__))
9 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py") 9 DEPENDENCY_SCRIPT = os.path.join(BASE_DIR, "ensure_dependencies.py")
10 10
11 try: 11 try:
12 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR]) 12 subprocess.check_call([sys.executable, DEPENDENCY_SCRIPT, BASE_DIR])
13 except subprocess.CalledProcessError as e: 13 except subprocess.CalledProcessError as e:
14 print >>sys.stderr, e 14 print >>sys.stderr, e
15 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!" 15 print >>sys.stderr, "Failed to ensure dependencies being up-to-date!"
16 16
17 import buildtools.build 17 import buildtools.build
18 buildtools.build.processArgs(BASE_DIR, sys.argv) 18
19 args = sys.argv[:]
20 if '-t' in args:
21 index_opt = args.index('-t')
22 index_val = index_opt + 1
23 if index_val < len(args):
24 args.insert(1, args.pop(index_opt))
25 args.insert(2, args.pop(index_val))
26 buildtools.build.processArgs(BASE_DIR, args)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld