diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-12-31 20:34:54 -0800 |
---|---|---|
committer | Miika Turkia <miika.turkia@gmail.com> | 2017-01-01 14:23:49 +0200 |
commit | ca7f5935beaad8eff1f1c263a5e0b6561a1884f0 (patch) | |
tree | 5d50628edfa0905c0a8f4b0a4d33fe93d475739a /packaging | |
parent | 902a27d5de2a8fc70354a86a5e520f35d5bab79a (diff) | |
download | subsurface-ca7f5935beaad8eff1f1c263a5e0b6561a1884f0.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>
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/macosx/make-package.sh | 3 |
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 |