-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
29 lines (24 loc) · 825 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Change paths in WebKit libraries
namespace :libs do
task :id do
libs = %w{ JavaScriptCore JavaScriptGlue WebCore WebKit }
libs.each do |lib|
`install_name_tool -id \
@rpath/#{lib}.framework/Versions/A/#{lib} \
libs/#{lib}.framework/Versions/A/#{lib}`
end
end
task :change do
webkit_dir = ENV["WEBKIT_PATH"] || "/Volumes/Data/WebKit/53765/10.6"
libs = %w{ JavaScriptCore JavaScriptGlue WebCore WebKit }
libs.each do |lib|
puts "Changing #{webkit_dir}/#{lib}.framework"
(libs - [lib]).each do |other|
`install_name_tool -change \
#{webkit_dir}/#{other}.framework/Versions/A/#{other} \
@rpath/#{other}.framework/Versions/A/#{other} \
libs/#{lib}.framework/Versions/A/#{lib}`
end
end
end
end