1
0
Fork 0

Fix SV renaming for Mac release.

This commit is contained in:
James Turner 2012-08-22 22:34:27 +01:00
parent 154afebc45
commit e13daffc46

View file

@ -53,9 +53,8 @@ srcDir=Dir.pwd + "/flightgear"
def fix_svn_install_names(object)
$svnLibs.each do |l|
fileName = "lib#{l}-1.0.dylib"
oldName = "#{$prefixDir}/lib/#{fileName}"
newName = "@executable_path/../Frameworks/#{fileName}"
`install_name_tool -change #{oldName} #{newName} #{object}`
`install_name_tool -change #{fileName} #{newName} #{object}`
end
end
@ -66,7 +65,7 @@ def copy_svn_libs()
path = "#{$frameworksDir}/#{libFile}"
`cp #{$prefixDir}/lib/#{libFile} #{$frameworksDir}`
fix_svn_install_names(path)
`install_name_tool -id #{libFile} #{path}`
# `install_name_tool -id #{libFile} #{path}`
end
end