summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-31 20:34:54 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-12-31 20:34:54 -0800
commitaf65e6be0facac661ba1748e0ebee867761e5690 (patch)
tree74f8bbfe43a23104433c03cc824bb49b2cedba22
parente94d49668ef9e216e1fff0de8ce9303b55c67c35 (diff)
downloadsubsurface-af65e6be0facac661ba1748e0ebee867761e5690.tar.gz
Fix MacOS make-package script
We need the full path to the local libssh in order to replace it with the correct path. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xpackaging/macosx/make-package.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh
index 6504e8ccd..6ff1d4cf0 100755
--- a/packaging/macosx/make-package.sh
+++ b/packaging/macosx/make-package.sh
@@ -32,7 +32,8 @@ for i in libssh libssrfmarblewidget libgit2 libGrantlee_TextDocument.dylib libGr
LIBSSH=$(basename ${OLD})
fi
if [[ "$i" = "libgit2" && ! -z ${LIBSSH} ]] ; then
- install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
+ CURLIBSSH=$(otool -L Subsurface.app/Contents/Frameworks/${SONAME} | grep libssh | cut -d\ -f1 | tr -d "\t")
+ install_name_tool -change ${CURLIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
fi
fi
done