comparison deploy/osx/paths.sh @ 372:2d3f1e5d8638

OS/X build fixes, for now slightly simpler (conceptually) situation in which we have a single bundle with two Python extension distributions in it, one for each active Python version
author Chris Cannam
date Thu, 24 Mar 2011 13:15:49 +0000
parents aa852b477e4d
children 0f3e086066fc
comparison
equal deleted inserted replaced
371:f051d210521e 372:2d3f1e5d8638
19 install_name_tool -id QtGui "$app.app/Contents/Frameworks/QtGui" 19 install_name_tool -id QtGui "$app.app/Contents/Frameworks/QtGui"
20 install_name_tool -id QtNetwork "$app.app/Contents/Frameworks/QtNetwork" 20 install_name_tool -id QtNetwork "$app.app/Contents/Frameworks/QtNetwork"
21 21
22 for fwk in QtCore QtGui QtNetwork; do 22 for fwk in QtCore QtGui QtNetwork; do
23 find "$app.app" -type f -print | while read x; do 23 find "$app.app" -type f -print | while read x; do
24 current=$(otool -L "$x" | grep "$fwk.framework/" | awk '{ print $1; }') 24 current=$(otool -L "$x" | grep "$fwk" | grep ramework | awk '{ print $1; }')
25 [ -z "$current" ] && continue 25 [ -z "$current" ] && continue
26 echo "$x has $current" 26 echo "$x has $current"
27 relative=$(echo "$x" | sed -e "s,$app.app/Contents/,," \ 27 relative=$(echo "$x" | sed -e "s,$app.app/Contents/,," \
28 -e 's,[^/]*/,../,g' -e 's,/[^/]*$,/Frameworks/'"$fwk"',' ) 28 -e 's,[^/]*/,../,g' -e 's,/[^/]*$,/Frameworks/'"$fwk"',' )
29 echo "replacing with relative path $relative" 29 echo "replacing with relative path $relative"