| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 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 # This script makes sure that no __OBJC,__image_info section appears in the | 7 # This script makes sure that no __OBJC,__image_info section appears in the |
| 8 # executable file built by the Xcode target that runs the script. If such a | 8 # executable file built by the Xcode target that runs the script. If such a |
| 9 # section appears, the script prints an error message and exits nonzero. | 9 # section appears, the script prints an error message and exits nonzero. |
| 10 # | 10 # |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 echo "${0}: ${executable} has an __OBJC,__image_info section" 2>&1 | 34 echo "${0}: ${executable} has an __OBJC,__image_info section" 2>&1 |
| 35 exit 1 | 35 exit 1 |
| 36 fi | 36 fi |
| 37 | 37 |
| 38 if [[ ${PIPESTATUS[0]} -ne 0 ]]; then | 38 if [[ ${PIPESTATUS[0]} -ne 0 ]]; then |
| 39 echo "${0}: otool failed" 2>&1 | 39 echo "${0}: otool failed" 2>&1 |
| 40 exit 1 | 40 exit 1 |
| 41 fi | 41 fi |
| 42 | 42 |
| 43 exit 0 | 43 exit 0 |
| OLD | NEW |