| Index: chrome/tools/build/mac/run_verify_order.py
|
| diff --git a/build/config/mac/xcrun.py b/chrome/tools/build/mac/run_verify_order.py
|
| similarity index 55%
|
| copy from build/config/mac/xcrun.py
|
| copy to chrome/tools/build/mac/run_verify_order.py
|
| index e2a775e51588bc58aea832544c35e2ef18cd5061..70802464393177ecbc8aa1c50b0768d3c062208d 100644
|
| --- a/build/config/mac/xcrun.py
|
| +++ b/chrome/tools/build/mac/run_verify_order.py
|
| @@ -3,18 +3,25 @@
|
| # found in the LICENSE file.
|
|
|
| import argparse
|
| -import os
|
| -import subprocess
|
| +import os.path
|
| import sys
|
| +import subprocess
|
| +
|
| +# Wraps chrome/tools/build/mac/verify_order for the GN build so that it can
|
| +# write a stamp file, rather than operate as a postbuild.
|
|
|
| if __name__ == '__main__':
|
| parser = argparse.ArgumentParser(
|
| - description='A script to execute a command via xcrun.')
|
| + description='A wrapper around verify_order that writes a stamp file.')
|
| parser.add_argument('--stamp', action='store', type=str,
|
| - help='Write a stamp file to this path on success.')
|
| + help='Touch this stamp file on success.')
|
| +
|
| args, unknown_args = parser.parse_known_args()
|
|
|
| - rv = subprocess.check_call(['xcrun'] + unknown_args)
|
| + this_script_dir = os.path.dirname(sys.argv[0])
|
| + rv = subprocess.check_call(
|
| + [ os.path.join(this_script_dir, 'verify_order') ] + unknown_args)
|
| +
|
| if rv == 0 and args.stamp:
|
| if os.path.exists(args.stamp):
|
| os.unlink(args.stamp)
|
|
|