OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
3 # Since the web-plugin is not the main executable, we need to change | 7 # Since the web-plugin is not the main executable, we need to change |
4 # the @executable_path reference to @loader_path for our embedded frameworks | 8 # the @executable_path reference to @loader_path for our embedded frameworks |
5 # | 9 # |
6 | 10 |
7 # First take care of Breakpad.framework | 11 # First take care of Breakpad.framework |
8 /usr/bin/install_name_tool -change \ | 12 /usr/bin/install_name_tool -change \ |
9 @executable_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad \ | 13 @executable_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad \ |
10 @loader_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad \ | 14 @loader_path/../Frameworks/Breakpad.framework/Versions/A/Breakpad \ |
11 "$1" | 15 "$1" |
12 | 16 |
13 # Cg.framework | 17 # Cg.framework |
14 /usr/bin/install_name_tool -change \ | 18 /usr/bin/install_name_tool -change \ |
15 @executable_path/../Library/Frameworks/Cg.framework/Cg \ | 19 @executable_path/../Library/Frameworks/Cg.framework/Cg \ |
16 @loader_path/../Frameworks/Cg.framework/Cg \ | 20 @loader_path/../Frameworks/Cg.framework/Cg \ |
17 "$1" | 21 "$1" |
OLD | NEW |