OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Usage: strip_save_dsym <whatever-arguments-you-would-pass-to-strip> | 7 # Usage: strip_save_dsym <whatever-arguments-you-would-pass-to-strip> |
8 # | 8 # |
9 # strip_save_dsym is a wrapper around the standard strip utility. Given an | 9 # strip_save_dsym is a wrapper around the standard strip utility. Given an |
10 # input Mach-O file, strip_save_dsym will save a copy of the file in a "fake" | 10 # input Mach-O file, strip_save_dsym will save a copy of the file in a "fake" |
11 # .dSYM bundle for debugging, and then call strip to strip the Mach-O file. | 11 # .dSYM bundle for debugging, and then call strip to strip the Mach-O file. |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 print >> sys.stderr, "Nothing to strip" | 326 print >> sys.stderr, "Nothing to strip" |
327 return 1 | 327 return 1 |
328 | 328 |
329 if not strip_and_make_fake_dsym(macho): | 329 if not strip_and_make_fake_dsym(macho): |
330 return 1 | 330 return 1 |
331 | 331 |
332 return 0 | 332 return 0 |
333 | 333 |
334 if __name__ == "__main__": | 334 if __name__ == "__main__": |
335 sys.exit(main(sys.argv)) | 335 sys.exit(main(sys.argv)) |
OLD | NEW |